🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Expanding JTree nodes

#16148
From: Leo Cohen
Date: Sun, 21 Mar 1999 00:00
8 lines
945 bytes
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?
Technical Details
Message-ID: <36F56B18.93114C09@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f61e57ad026494d3,start
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Expanding JTree nodes
Date: 1999/03/21
Message-ID: <36F56B18.93114C09@cs.virginia.edu>
X-Deja-AN: 457341832
Content-Transfer-Encoding: 7bit
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