Article View: borland.public.jbuilder.java.swing
Article #7587Re: JTree 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 18:38
Date: Sun, 21 Jan 2001 18:38
42 lines
2027 bytes
2027 bytes
Hi Martin, Thank you very much. It works! /Alice Kang "Martin Andersson" <b97maran@student.his.se> wrote in message news:94edf3$spv2@bornews.inprise.com... > Try: > jTree.makeVisible(new TreePath(leaf1_1.getPath())); > jTree.makeVisible(new TreePath(leaf2_1.getPath())); > jTree.makeVisible(new TreePath(leaf3_1.getPath())); > > /Martin > > "Alice Kang" <jkang5@learn.senecac.on.ca> wrote in message > news:3a6a6cda_1@dnews... > > 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:
<3a6b29fe_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!24.156.204.177References:
<3a6a6cda_1@dnews> <94edf3$spv2@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c71c666904982b96 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-21 10:31:52 PST From: "Alice Kang" <jkang5@learn.senecac.on.ca> Newsgroups: borland.public.jbuilder.java.swing References: <3a6a6cda_1@dnews> <94edf3$spv2@bornews.inprise.com> Subject: Re: 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 13:38:25 -0500 Lines: 44 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: <3a6b29fe_2@dnews> X-Trace: 21 Jan 2001 10:27:10 -0800, 24.156.204.177 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!24.156.204.177