I am working with XML and Dom.
I do a XML JTree dinamically, I don't read from any file.
More or less, the code is very similar to the one in the tutorials:
java.sun.com/.../index.html
The thing is that I have create a method to remove a node selected.
This method removes the node's children first, and then the selected
node. Well, they are removed correctly, but the selectedNode still
appears in the tree. Then I read the tree to write it into a file
and the current node doesn't appear in the file. So, I know that the
node has been removed but, how can I update the Jtree view? I was
trying to do with treemodelListeners...but I don't know how. With
any other JTree I worked out the problem with treeModel.reload()...
Any code would be a great help.