Forum Discussion
Holly_Greger
15 years agoContributor
Hi Henrik,
I was able to instantiate the tree with no problem then setXml(string xml) and then added it to a JPanel and it displayed nicely. Now, trying to update this xml tree after it has been displayed by using setXml(string xml) is not working. I've tried invoking validate(), among other things, on the panel holding the tree and it doesn't work. How could i update this xml tree dynamically and have my UI reflect it?
I was able to instantiate the tree with no problem then setXml(string xml) and then added it to a JPanel and it displayed nicely. Now, trying to update this xml tree after it has been displayed by using setXml(string xml) is not working. I've tried invoking validate(), among other things, on the panel holding the tree and it doesn't work. How could i update this xml tree dynamically and have my UI reflect it?