> In general you don't have to implement TreeNode. What you have to > implement is TreeModel which should be possible for any kind of > hierarchial data. TreeNode (and it's implementation > DefaultMutableTreeNode) is just a helper to be used in combination with > DefaultTreeModel to create kind of ad hoc tree models.
This is similar to how I have it in the new tree as well except I might have the terms interchanged. You must supply a TreeNode and the TreeModel is generated automatically by wrapping that tree node you supply. Its still the same principal as Oliver is discussing. You need to have some common interface for your data in order to wrap it with a model that can be used by the component. Same goes for the Swing version of tree for that matter. > Oliver sean

