Selection in JTreeTables
843804Feb 25 2002 — edited Jul 31 2007I'm trying to programmatically select nodes within my JTreeTable, with zero-success...
I imagined the following would be fine for rendering the selection.
JTree tree = treeTable.getTree();
tree.setExpandsSelectedPaths(true);
// ...
treePath = treePath.pathByAddingChild(someObject);
tree.setSelectionPath(treePath);
The parent node is properly expanded and the new child becomes visible, however, there is no selection.
Any help very welcome.
thanks,
ian