Reputation: 113
I created a class that extends DefaultMutableTreeNode. It has a variable, "resource" of the type Resource so that it can be linked to an object without that object affecting its name. The Resource class has a variable, "name" that I would like to be changed when its corresponding DefaultMutableTreeNode is renamed, but I can't find any such events.
Upvotes: 0
Views: 476
Reputation: 35106
In DefaultTreeCellEditor there is this method: http://docs.oracle.com/javase/7/docs/api/javax/swing/tree/DefaultTreeCellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)
Upvotes: 1