wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Edit Values in a JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Edit Values in a JTree " Watch "Edit Values in a JTree " New topic
Author

Edit Values in a JTree

Natraj Gudla
Ranch Hand

Joined: Feb 09, 2003
Posts: 34
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

Joined: Sep 07, 2003
Posts: 12
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Edit Values in a JTree
 
Similar Threads
JTree
Jtree problem
JTree Scalablity ???
JTree node editable
JTree node as non editable