[maybe because i`m new to java & couldn�t use them in the right way...] Any ideas? Tom Use Default Tree Model to track the changes in the tree structure.You can add and delete nodes without forcing the tree to collapse and redraw all nodes. Your reply gave me some new ideas but the problem is still unsolved. Or you change the data on somewhere and want to reflect the changes on the JTree?programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums Hi all, after editing a node in a jtree, how do i refresh this node so that the changes appear immediately.I know there are lots of topics posted already concerning this question but i didn�t find a solution yet...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. I am getting myself confused as to how this should take ...My problem is that: I have a class (let's say Class1) that displays a JTree that shows some objects.
If I add a node to the root, then the tree updates OK, but then if I add another, nothing happens.
From an outside class (let's say Class2), I need to update the contents of the JTree (after adding and deleting objects displayed on the JTree).
I tried repaint() and update UI() methods but they didnt work. I'm having a problem getting a groupable JTable to work.
The JTable has an underlying JTree which is used to group on a specific column.
The table can expand and retract it's nodes perfectly however when I call JTree.expand Path it doesn't update the table view immediately, instead it updates after a call to show Visible on a dialog.
Search for updating jtree:
I have a JTree with 3 Nodes, Unaccepted, Accepted, and Closed. I am developing a polling method to update the JTree every 5 minutes. I am putting the jtree inside a scroll pane and then into the panel.