🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Immediately expanding tree nodes

#10113
From: Greg Hamer
Date: Mon, 08 Nov 1999 00:00
12 lines
1053 bytes
After building and setting the model, you can call JTree.expandPath(TreePath
node) for each node that you want expanded.

Jeff Marendo wrote:

> Does anyone know how to go about having several desired nodes in a JTree
> expand automatically upon opening an Applet?  I know that the default is set
> so that a node with subnodes is not expanded.  There are a couple of nodes
> in the tree I'm trying to make that I would like to have initially expanded
> automatically.
>
> Thanks!
Technical Details
Message-ID: <38277F6F.7C16542E@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7vq1i6$gk43@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5f23da974d24865c
X-Google-Attributes: gid111d45,public
From: Greg Hamer <ghamer@borland.com>
Subject: Re: Immediately expanding tree nodes
Date: 1999/11/08
Message-ID: <38277F6F.7C16542E@borland.com>
X-Deja-AN: 546166255
Content-Transfer-Encoding: 7bit
References: <7vq1i6$gk43@forums.borland.com>
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