Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. When the user adds a new entry into the DB, I want the JTree to automatically show the new data after the user presses save.I am trying to use the reload() method to accomplish this, but am not seeing any changes in the JTree.My problem is that when i change the node name on the right hand ... Several people will be modifying the database therefore the ticket status will change periodically. But, even though the jtree is re-created, it does not update on the panel.
Since your nodes aren't actually tied to the database, but only hold data that was pulled from the database at the time they are created, the nodes haven't changed, only the data in the database has. However, I do have another question on why my tree is doing something.tree.update UI(); works fine, but all nodes collapse, so i want to update only the changed node (or prevent the collapse-thing).I know there are lots of topics posted already concerning this question but i didnt find a solution yet... Hi everyone, Hi, I have implemented my own Tree Model which i use to manage the objects i am adding to the JTree.I am first making jtree and the rootnode object null and initializing it again (for ...You'll need to rebuild the tree model from the database in the "refresh Tree()" method.