I want to listen to text changes when the user is editing the DefaultMutableTreeNode
when the JTree
is set editable. Like, i want to display a status label of what the user is typing in the node.
Unfortunately, i didn't find a DocumentListener
for DefaultMutableTreeNode
to listen to changes like inserting, deleting and modifying text in the DefaultMutableTreeNode
.
Could any one say me how to do this? Any working answer is appreciated. Thanks in advance.