Hi, I am using JTree in my application. I can edit the tree node just by single mouse click and some pause or triple click on the node. I want to accomplish it using keyboard. For this, I have to provide menu item that should enable me editing the node (as in windows OS). I appreciate if anybody can help me in achieving this. Thanks in advance.
Your menuitem should call myTree.startEditingAtPath( TreePath tp ), where tp indicates the path to the node you are editing. You can also add a KeyListener to the JTree to call this method without using a MenuItem...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.