wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how to get selected node of a jtree? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to get selected node of a jtree?" Watch "how to get selected node of a jtree?" New topic
Author

how to get selected node of a jtree?

phooton misra
Ranch Hand

Joined: Jul 31, 2012
Posts: 40

hi,
[size=24][/size][color=olive][/color]
I have created a jtree,and now when i ll click on any node, i want to know the name of that node ,but i dont know how can i get the name of that node .So somebody please suggest me how can i get the name of that node.

with regards,

arun.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
TreeSelectionListener
google for sample code

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get selected node of a jtree?