Re: can JTree's have multiple roots and models ?




> 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.

.



Relevant Pages

  • Re: Mock Binding?
    ... >good idea in your opinion? ... > No trees were killed in the sending ... > number of electrons were terribly ... Prev by Date: ...
    (rec.crafts.textiles.quilting)
  • Re: Animals and drugs
    ... mocking birds and jays drunk on cherries in the trees along our ... Prev by Date: ...
    (alt.gathering.rainbow)
  • Re: A BIG PROBLEM FOR ME!!!
    ... <SNIP moaning worse than a forest of willow trees... ... > how i can cntact MATLAB tech support... ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: 6/27/85 SPAC. Any Good?
    ... Another fun night in the trees at SPAC. ... Prev by Date: ...
    (rec.music.gdead)
  • Re: Which exam to start with?
    ... the ether: ... > from trees, ... JaR ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)