Java Swing: Expanding TreeNode
- by sarav
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.