Article View: borland.public.jbuilder.java.language
Article #8064JTrees -- how to programmatically expand one?
From: Ken Warner
Date: Mon, 23 Apr 2001 14:26
Date: Mon, 23 Apr 2001 14:26
19 lines
1411 bytes
1411 bytes
Hi, I have a JTree in a JScrollPane. It is a three level pain -- ooops -- I mean tree. I want to expand to a particular node. I know what node I want to expand to. How do I use that node to expand the tree? The tree starts completely collapsed so that only the root node is showing. There are 9 "middle" nodes and those 9 middle nodes can have from 0 to 200 leaf nodes. I want to expand the tree to a particular leaf node. Pointers? Thoughts? *CODE*? -- Ken Warner
Technical Details
Message-ID:
<3AE43B8F.1729735A@cts.com>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-xfer.nuri.net!enews.sgi.com!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-was.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!news.boerde.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,942cde4f8053c1d0,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-23 09:46:07 PST Message-ID: <3AE43B8F.1729735A@cts.com> Date: Mon, 23 Apr 2001 09:26:23 -0500 From: Ken Warner <kwarner@cts.com> X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: JTrees -- how to programmatically expand one? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.120.1.5 X-Trace: dnews 988043168 216.120.1.5 (23 Apr 2001 09:26:08 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-xfer.nuri.net!enews.sgi.com!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-was.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!news.boerde.de!dnews