🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTree expansion

#16105
From: Richard Wilkman
Date: Wed, 24 Mar 1999 00:00
44 lines
1886 bytes
Leo:

With JTree, you walk the tree.  Best I've come up with is that you can
expand to show the children of the current node.  It's just recursive
code but you'd kind of expect it to be there.

-Rich

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

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <36F9457D.7F1E4A0C@inprise.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: Richard Wilkman <rwilkman@inprise.com>
Subject: Re: JTree expansion
Date: 1999/03/24
Message-ID: <36F9457D.7F1E4A0C@inprise.com>
X-Deja-AN: 458600170
Content-Transfer-Encoding: 7bit
References: <36F9137B.1C6CF565@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.language