Re: JTree will expand but not collapse
From: dablick (db_at_digital.com)
Date: Tue, 09 Dec 2003 19:14:45 GMT
Yep. That was it.
"Christian Kaufhold" <firstname.lastname@example.org> wrote in message
> dablick <email@example.com> wrote:
> > I'm trying to write some buttons that entirely expand and entirely
> > a JTree and would appreciate any help.
> > For some reason, the code I have will expand the tree, but not collapse
> > Here's the basic recursive tree walking function I use to do it. Why
> > 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.