I have a JTree who contain some object
These objects have some field,one of them is used to display the node in the jtree.
I search a way to when the value of this field is changed, node in the jtree change too.
Now, in the valueChanged method if i do:
tree.firePropertyChange(JTree.ROOT_VISIBLE_PROPERTY, !tree.isRootVisible(), tree.isRootVisible());
that work... but i need to click on the node to get it to work.
Any idea, to get the modification in the jtree when value is changed?