如何防止节点删除或添加后JTree崩溃 [英] How to prevent JTree collapse after node deletion or addition
本文介绍了如何防止节点删除或添加后JTree崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个JTree,它允许我添加或删除叶子节点.
但是问题是删除后树会塌陷到根.
从用户的角度来看,多数民众赞成在如此烦人.我希望它保持其状态并更新树.
请帮助我< D
I have a JTree which allows me to add or delete leaves nodes.
but the problem is after deletion the tree collapse to the root.
thats so irritating from user''s point of view. I want it to keep its state and update the tree.
plz help me <;D
推荐答案
开始 ^ ]的教程.我没有环顾四周,但这将是一个不错的起点. Google在其他有关"jtree"的492,000个结果中,很多也将有用.
Start here[^] for a tutorial. I haven''t looked around there, but it would be a good place to start. Many of the other 492,000 Google results for "jtree" would be useful too.
这篇关于如何防止节点删除或添加后JTree崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文