Re: can JTree's have multiple roots and models ?
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 16:47:49 GMT
"William Z." <Wizumwalt@xxxxxxxxx> wrote in message
news:1130431528.928978.108140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I want to change my tree around and I have the following questions
> about a JTree?
>
> - Can a JTree can have several root nodes?
> - Can a JTree have several TreeModel's for each root node?
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?
Similarly, take all your TreeModels and make them children of a
"super-TreeModel", and make that the model for your JTree.
- Oliver
.
- Follow-Ups:
- Re: can JTree's have multiple roots and models ?
- From: William Z.
- Re: can JTree's have multiple roots and models ?
- References:
- can JTree's have multiple roots and models ?
- From: William Z.
- can JTree's have multiple roots and models ?
- Prev by Date: can JTree's have multiple roots and models ?
- Next by Date: Re: can JTree's have multiple roots and models ?
- Previous by thread: can JTree's have multiple roots and models ?
- Next by thread: Re: can JTree's have multiple roots and models ?
- Index(es):
Relevant Pages
|