Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to highlight node of JTree programaticlly??  RSS feed

sharath kv
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to highlight the node of a Jtree
I tried using this but it didn't work
The treePath is displayed correctly in the
DOS prompt but the JTree is not highlighting
that last node of the treePath.
I tried this with no luck again
TreeNode[] treeN = mytree.getSelectionPath();
mytree.setSelectionPath(new TreePath(treeN));
I tried this also with no luck
Any help would be appreciated
Thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!