S
Srikanth
How can i hide and show some nodes in the tree based on some criteria?
Right now i done it this way(given below). But its not working...
1) I have extended the DefaultMutableTreeNode into CustomTreeNode which
contains a variable called visible and contains methods setVisible()
and isVisible()
2) I have overridden the DefaultTreeModel.
a) getChildCount() gives the count of the visible node
b) getChildIndex() gives the index of the nodes among the visible
nodes
c) getChild() gives that node.
Right now i done it this way(given below). But its not working...
1) I have extended the DefaultMutableTreeNode into CustomTreeNode which
contains a variable called visible and contains methods setVisible()
and isVisible()
2) I have overridden the DefaultTreeModel.
a) getChildCount() gives the count of the visible node
b) getChildIndex() gives the index of the nodes among the visible
nodes
c) getChild() gives that node.