Article View: borland.public.jbuilder.java.language
Article #16609Re: Showing an expanded JTree
From: Tom Heagy
Date: Mon, 01 Feb 1999 00:00
Date: Mon, 01 Feb 1999 00:00
27 lines
1216 bytes
1216 bytes
Yes. It's called "expandByDefault" and can be set in the designer. Leo Cohen wrote: > I want a JTree to be fully expanded when it is first displayed. So far, > the best I can figure out is > getRowCount() > for( . each row . ) > expandRow() > > starting with the last one & expanding backwards. > > A- this seems clumsy > B- it does not expand the width of the frame > > Isn't there a property for a JTree that shows it fully expanded? > > -- > Leo Cohen > > 116-1 Howard Drive > Charlottesville, VA 22903 > > 804-243-8922 (UVA) > 804-244-4648 (home) > 804-244-7922 (fax) > lcohen@cs.virginia.edu
Technical Details
Message-ID:
<36B5AE53.EF5C3AEE@sciatl.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36B21F71.5672426@cs.virginia.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,7389fa5a47385b0a X-Google-Attributes: gidf74b3,public From: Tom Heagy <tom.heagy@sciatl.com> Subject: Re: Showing an expanded JTree Date: 1999/02/01 Message-ID: <36B5AE53.EF5C3AEE@sciatl.com> X-Deja-AN: 439354453 Content-Transfer-Encoding: 7bit References: <36B21F71.5672426@cs.virginia.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language