Java Swing JTree update content
I've got the following problem:
I have a Jtree, which is in the left side of my JSplitPane. When I select an item in the tree, I get the option to edit it in the Right part of the SplitPane. Everything works fine so far. Once I editted the item, I pres the save button, which puts my updated item into the database (works fine) and updates the tree to represent the new item. This last part is where the problems begin. The text of the item is not updated. Once I select a different item in the tree the text of the changed Item changes, but I can't figure out how to change it while the text is selected.
Any help would be appreciated.