I\'m writing an IRC Client (yes another one). Long story short. I\'m writing a Server dialogue that keeps a list of this:
When using a JTree, a \"user object\" of a DefaultMutableTreeNode can be set. This can be of any kind, but to display it, its toString() value is used. This is not what I need.
I would like to have a way t开发者_如何学编程o display the contents of an XML file in a JTree. I have already accomplished this using DOM, by implementing a custom TreeModel (and TreeCellRenderer). Ho