Re: JTree will expand but not collapse

From: dablick (db_at_digital.com)
Date: 12/09/03


Date: Tue, 09 Dec 2003 19:14:45 GMT

Yep. That was it.

Thanks,

   db

"Christian Kaufhold" <usenet@chka.de> wrote in message
news:0Ts7klfIvagNmc0@uni.chka.de...
> dablick <db@digital.com> wrote:
>
> > I'm trying to write some buttons that entirely expand and entirely
collapse
> > a JTree and would appreciate any help.
> >
> > For some reason, the code I have will expand the tree, but not collapse
it.
> >
> > Here's the basic recursive tree walking function I use to do it. Why
does
> > it only for the expand case and not the collapse case?
>
>
> collapsePath also expands the parent path of the path to collapse.
>
> Use post-order walk for collapsePath.
>
>
>
> Christian