Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Edit Values in a JTree

 
Natraj Gudla
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a Jtree , which maintains the status of all of its tree nodes whether they are collapsed or expanded...
Now...from this tree , when the user renames one of the tree node..
how do i change the node name in the Jtree and its representation in the tree..
In the sense i want to know how can i edit the Nodes in a Tree..
In my implementation , I use a TreePath to represent a node.
can any one help me?...
regards
 
Venkata Cherukuri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
get hold of the node- have some set/get methods for the node functions, then u set the name for the node in the rename operation- and reload the model
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic