this seems to be a quite simple and feasible challenge, but I don't have the time to figure that out by myself.
We have a JTree component which is filled dynamically with DefaultMutableTreeNode objects to display a hierarchical structure.
The DefaultMutableTreeNode objects are showing individual strings.
We have already a custom CellEditor in place which allows to edit the selected DefaultMutableTreeNode item left clicked at least twice.
Once one of the DefaultMutableTreeNode items is selected and right clicked a context menu should be displayed with an option to edit
the selected item. After selecting the edit option the selected item should appear similar to "clicking the DefaultMutableTreeNode item twice".
Please feel free to send a note if there are further questions.