Re: can JTree's have multiple roots and models ?
- From: "William Z." <Wizumwalt@xxxxxxxxx>
- Date: 27 Oct 2005 09:57:05 -0700
> I suspect the answer is "no" to both, but I'm not sure.
>
> Have you considered taking all your trees, and making them children of a
> so-called "super root", and then using that as the root of the JTree?
I currently have this, but my tree is getting too deep and everything
stems from one main root node. I'd like to take some of this wasted
space/level off.
Maybe I can just hide the main root node and just show the children.
>
> Similarly, take all your TreeModels and make them children of a
> "super-TreeModel", and make that the model for your JTree.
>
> - Oliver
Not sure I follow this idea, I didn't think models could have models,
unless you meant to make my own super model to manage it's children
models.
.
- Follow-Ups:
- Re: can JTree's have multiple roots and models ?
- From: Markus Mueller
- Re: can JTree's have multiple roots and models ?
- From: Oliver Wong
- Re: can JTree's have multiple roots and models ?
- References:
- can JTree's have multiple roots and models ?
- From: William Z.
- Re: can JTree's have multiple roots and models ?
- From: Oliver Wong
- can JTree's have multiple roots and models ?
- Prev by Date: Re: can JTree's have multiple roots and models ?
- Next by Date: Re: problem related to transferhandler
- Previous by thread: Re: can JTree's have multiple roots and models ?
- Next by thread: Re: can JTree's have multiple roots and models ?
- Index(es):
Relevant Pages
|