Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get selected node of a jtree?

 
phooton misra
Ranch Hand
Posts: 52
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TreeSelectionListener
google for sample code

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic