🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16104

Re: JTree expansion

#16104
From: Tom Heagy
Date: Wed, 24 Mar 1999 00:00
25 lines
1421 bytes
I don't know how it's done with a JTree but the tree control (TreeControl)
in JBCL has an attribute called "expandByDefault" that does what you're
looking for.

Leo Cohen wrote:

> I want a JTree to appear with all of its entries expanded. The way I've
> been doing it is to get the row count by counting each row that is
> delivered for display by the data model; then, working from the bottom
> row up, I use expandRow() on each row.
>
> This seems like a clumsy way of doing it. Isn't there a property or
> method associated with JTree that I can set that makes JTree expand each
> row as it puts it on the screen?
> --
> Leo Cohen
>
> 116-1 Howard Drive
> Charlottesville, VA  22903
>
> 804-243-8922 (UVA)
> 804-244-4648 (home)
> 804-244-7922 (home fax)
> 815-550-9313 (office fax)
> lcohen@cs.virginia.edu
Technical Details
Message-ID: <36F92A19.E3A1EC1@sciatl.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36F9137B.1C6CF565@cs.virginia.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,cd62a99c36593be
X-Google-Attributes: gidf74b3,public
From: Tom Heagy <tom.heagy@sciatl.com>
Subject: Re: JTree expansion
Date: 1999/03/24
Message-ID: <36F92A19.E3A1EC1@sciatl.com>
X-Deja-AN: 458494017
Content-Transfer-Encoding: 7bit
References: <36F9137B.1C6CF565@cs.virginia.edu>
To: Leo Cohen <lcohen@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