0

I have parsed an xml document using org.dom4j.io.SAXReader, is it possible to feed this into javax.swing.tree.TreeModel and generate a dynamically changing visual Swing JTree?

For example, when I programmaticaly add or delete nodes, I want the Swing JTree to reflect teh changes immediately.

How can I achieve this, and is there a better suggestion to using dom4j ?

KJW
  • 15,035
  • 47
  • 137
  • 243

1 Answers1

1

Have you looked at BranchTreeNode. I think this should help.

MarcoS
  • 13,386
  • 7
  • 42
  • 63
  • that appears to be something I am looking for. It would be nice if I could find some examples for it. – KJW Mar 29 '11 at 10:26