🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: displaying child nodes on demand

#1538
From: Tad Frysinger [TeamB]
Date: Tue, 28 Oct 2003 15:07
13 lines
1546 bytes
Alan Shiers wrote:
> Hi there,
> 
Actually, the technique I have always used is nodeChanged() method of 
DefaultTreeModel. I think it will do everything you need, all you have 
to do is pass it the PARENT node where you added all the other nodes. If 
you then want to show everything expanded, you can use the normal 
methods on JTree for that.

That way you don't have to subclass anything.

-- 
Tad Frysinger [TeamB]
Technical Details
Message-ID: <3f9e8645$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3f9ae29b$1@newsgroups.borland.com> <u3cdgqvx4.fsf@ergo.no> <3f9c6527$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,63f1d22919caaa01
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-28 07:09:48 PST
Date: Tue, 28 Oct 2003 08:07:12 -0700
From: "Tad Frysinger [TeamB]" <tfrysinger@earthlink.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: displaying child nodes on demand
References: <3f9ae29b$1@newsgroups.borland.com> <u3cdgqvx4.fsf@ergo.no> <3f9c6527$2@newsgroups.borland.com>
In-Reply-To: <3f9c6527$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.165.213.196
Message-ID: <3f9e8645$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067353669 67.165.213.196 (28 Oct 2003 07:07:49 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail