LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How do i refresh a jtree? (https://www.linuxquestions.org/questions/programming-9/how-do-i-refresh-a-jtree-234351/)

logicdisaster 09-23-2004 12:05 PM

How do i refresh a jtree?
 
ive created two drag and drop jtrees which both use the same model. When i drop something its always a move so i have it copy the node remove the node from the model then insert the node into its new parent the problem is that the jtree doesnt show the change in structure unless i close all the nodes and deselect them then reopen them. Is there a way to refresh the tree without having to make the user close up the tree and deselect everything then reopen the nodes again

logicdisaster 09-23-2004 03:33 PM

okay ive tried reload revalidate repaint and anything else i could find, but for some reason it doesnt change anything. Do i have to write something to manually set the root as selected and close all the nodes and then reopen them just to make it refresh(seems kinda dumb)


All times are GMT -5. The time now is 07:41 AM.