learn java
The moose likes Beginning Java and the fly likes Select a node in JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Select a node in JTree" Watch "Select a node in JTree" New topic
Author

Select a node in JTree

Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

Hi,

how to select a node in JTree?

Thank you.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19359
    
  10

Click on it with your mouse.

Or did you have something else in mind? Your question wasn't very specific.
Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

Ok ok,

how to select a node in JTree programmatically?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
click the link (dotted underline) in your last post and read the docs - it's all there.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Select a node in JTree