You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Todd Patrick <To...@dtn.com> on 2006/06/05 18:36:41 UTC

Is there an example of using DefaultMutableTreeNode with a List object?

Is there an example of using DefaultMutableTreeNode with a List object?
 
I found that the constructor allows:
 
DefaultMutableTreeNode(java.util.List children, boolean allowsChildren) 
 
This is more to what I need, is there an example usage of this?
 
I'd like to know how if I would have to create a DefaultMutableTreeNode
object for each parent, since the List object parameter is a list of
children?
 
Thanks,
 
--Todd