We help IT Professionals succeed at work.

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.

Computer07
Computer07 asked
on
445 Views
Last Modified: 2012-05-11

Hi

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.
Thanks.
Comment
Watch Question

Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks, now its working properly.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.