How can i avoid the call to tree selection or how can a avoid method to get called written tree selection listener when a node in Jtree is collapsed.
Posted on 2011-04-19
I am using Jtree With root node name Alphanumeric.
Root has three nodes as node1, node2, node3.
Node1 contain three leaf node as leafnodeA, leafnodeB, leafnodeC.
Node2 contain three leaf node as leafnodeD, leafnodeE, leafnodeF.
Node3 contain three leaf node as leafnodeG, leafnodeH, leafnodeI.
When i selects multiple leafnode say leafnodeA, leafnodeE and leafnodeH. i am able to get all selected value.
when i collapse a node say node3, the tree selection listener gets called.
How can i avoid the call to tree selection or how can avoid method to call written tree selection listener when a node is collapsed.
Any kind of help with code snippets is appreciated.