Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

XML: JDom and Jtree View

  Asked By: Nancy    Date: Dec 13    Category: Java    Views: 1267
  

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.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on XML: JDom and Jtree View Or get search suggestion and latest updates.




Tagged: