I constructed a JTree with some data in it.
3 node types: root, ProjectNode, and leaf (string)
I would like to retrieve a leaf's treepath so that I can select it in the JTree.
I can do it for the nodes immediately following root but I couldn't find how to do it for the leaves.
The code below seems to work fine and I get the project node selected.
Now below that are leaves one of which I would like to have selected instead of the project node.
TreePath tp = projectTree.getNextMatch("someString",0,Position.Bias.Forward);
//Here I need to get the leaf with the name "x" for instance.
//that one should then be selected instead of the parent as currently