This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Edit Values in a JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Edit Values in a JTree
 
Similar Threads
Jtree problem
JTree
JTree node as non editable
JTree node editable
JTree Scalablity ???