• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree  RSS feed

 
kate damond
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I create a JTree, I want to set its root to be selected by default .. setSelectionPath( ??? ) where ??? would be the path of the tree's root. Would getPathForRow(0) be the right method to use ?
If possible, I would like to achieve this, without firing off a valueChanged event.
Thankyou,
Kate
 
kate damond
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't worry- sorted
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!