posted 21 years ago
Hi. I have an app that I want to update a JTree as a user enters data. Right now, I have a JTree as the left component on a JSplitPane, and a panel for Maintenance for this JTree as the right component. 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. Could someone tell me what I've missed or done wrong? Here's the method that runs when the user presses Save...
Here's the "refreshTree" method from another class...
I am using the DefaultTreeModel. Let me know if you need to see any other code. Thanks for any help!