0

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.

mKorbel
  • 109,107
  • 18
  • 130
  • 305
jimn346
  • 113
  • 1
  • 2
  • 9

1 Answers1

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
  • 32,042
  • 9
  • 48
  • 75