Java: DefaultMutableTreeNode Event When Renamed
Asked Answered
H

1

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.

Hendon answered 19/6, 2012 at 16:34 Comment(0)
C
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)

Circular answered 19/6, 2012 at 16:46 Comment(2)
Thank you! I'd looked there, but I guess I didn't know exactly what I was looking for.Hendon
@Hendon you should mark the question answered if that solved your problemCircular

© 2022 - 2024 — McMap. All rights reserved.