Simple question. I have a TreePath to a node in my JTree. How can I convert this TreePath to the DefaultMutableTreeNode the TreePath points too?
You should be able to call getLastPathComponent
on the TreePath
and cast that for a TreeNode
or DefaultMutableTreeNode
and be good to go.