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.
Asked
Active
Viewed 460 times
1 Answers
1
In DefaultTreeCellEditor there is this method: http://docs.oracle.com/javase/7/docs/api/javax/swing/tree/DefaultTreeCellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)

ControlAltDel
- 33,923
- 10
- 53
- 80
-
Thank you! I'd looked there, but I guess I didn't know exactly what I was looking for. – jimn346 Jun 19 '12 at 18:43
-
@jimn346 you should mark the question answered if that solved your problem – ControlAltDel Jun 19 '12 at 20:00