🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11791

Re: JTree expansion

#11791
From: Leo Cohen
Date: Wed, 24 Mar 1999 00:00
28 lines
1360 bytes
JBCL has a setExpandByDefault(boolean) method for its tree control. It
inherits from swing. Is there an equivalent method or property setting
in JTree?

************

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: <36F921D2.60A6049F@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36F5754B.380C249D@cs.virginia.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f8777c8bde0071b9
X-Google-Attributes: gid111d45,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Re: JTree expansion
Date: 1999/03/24
Message-ID: <36F921D2.60A6049F@cs.virginia.edu>
X-Deja-AN: 458481262
Content-Transfer-Encoding: 7bit
References: <36F5754B.380C249D@cs.virginia.edu>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing