Java Swing: Expanding TreeNode

Posted by sarav on Stack Overflow See other posts from Stack Overflow or by sarav
Published on 2010-04-12T13:11:14Z Indexed on 2010/04/12 13:13 UTC
Read the original article Hit count: 147

Filed under:
|

Is there any way to get a reference to the JTree component from a DefaultMutableTreeNode?

All I need is to expand the given treenode and its child nodes. I am planning to use the JTree.expandPath() but I only have the reference to the treenode.

I'm new to Swing and any suggestions to achieve this are welcome.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing