Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to highlight node of JTree programaticlly??

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