Article View: borland.public.jbuilder.java.swing
Article #11960JTree expansion
From: Leo Cohen
Date: Sun, 21 Mar 1999 00:00
Date: Sun, 21 Mar 1999 00:00
8 lines
938 bytes
938 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:
<36F5754B.380C249D@cs.virginia.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f8777c8bde0071b9,start X-Google-Attributes: gid111d45,public From: Leo Cohen <lcohen@cs.virginia.edu> Subject: JTree expansion Date: 1999/03/21 Message-ID: <36F5754B.380C249D@cs.virginia.edu> X-Deja-AN: 457353152 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.swing