Article View: borland.public.jbuilder.java.swing
Article #7584JTree Question. How to expand all the nodes and leafs of a Jtree at the beginnig of the tree is displayed?
From: Alice Kang
Date: Sun, 21 Jan 2001 05:11
Date: Sun, 21 Jan 2001 05:11
19 lines
1402 bytes
1402 bytes
Dear all:
I built a small tree using Jbuilder3.5. It looks like below after it was
fully expanded:
MyTree:
root
node1
leaf1.1
leaf1.2
node2
leaf2.1
leaf2.2
node3
leaf3.1
leaf3.2
The Question is: If I'd like the tree will be fully expanded automatically
as soon as it is diplayed , How can I do?
I tried to use (anObjectOfMyTree).expandRow( i ) in a <for loop>, but it
only expand the node1.
Technical Details
Message-ID:
<3a6a6cda_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!24.156.204.177Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c71c666904982b96,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-20 21:00:39 PST From: "Alice Kang" <jkang5@learn.senecac.on.ca> Newsgroups: borland.public.jbuilder.java.swing Subject: JTree Question. How to expand all the nodes and leafs of a Jtree at the beginnig of the tree is displayed? Date: Sun, 21 Jan 2001 00:11:24 -0500 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 24.156.204.177 Message-ID: <3a6a6cda_1@dnews> X-Trace: 20 Jan 2001 21:00:10 -0800, 24.156.204.177 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!24.156.204.177