🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

how to programmatically expand the root node?

#8798
From: M Le
Date: Wed, 12 Jul 2000 00:00
13 lines
776 bytes
i'd like to programmatically expand the root node of a JTree after
the tree has been initialized.

i've tried
    jTree.expandPath(new TreePath(rootNode.getPath()));
but that didn't do anything.

i even tried fireTreeWillExpand with no luck.

help, please!
thx.

-ML
Technical Details
Message-ID: <396cb216@dnews>
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: 111d45,a89862566ef5832e,start
X-Google-Attributes: gid111d45,public
From: "M Le" <wildcard_mcl@hotmail.com>
Subject: how to programmatically expand the root node?
Date: 2000/07/12
Message-ID: <396cb216@dnews>
X-Deja-AN: 645570802
X-Trace: 12 Jul 2000 10:59:50 -0800, 207.175.94.17
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700