Re: can JTree's have multiple roots and models ?
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 02:14:33 +0100
Oliver Wong wrote:
I meant you could have a main "super" TreeModel delegate most of the work to your other TreeModels, with the super TreeModel mainly dealing with creating the illusion that all of those sub-models are part of a bigger tree. Here's an example implementation:
When layering models like this, you need to be careful with listeners. You should make sure when the model nearest the component has no listeners attached to it, it has no listeners attached to the underlying model(s). If you don't, you might find yourself with a small (or otherwise) memory leak.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- References:
- can JTree's have multiple roots and models ?
- From: William Z.
- Re: can JTree's have multiple roots and models ?
- From: Oliver Wong
- Re: 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: getParentDirectory
- 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):