Article View: borland.public.jbuilder.java.swing
Article #9148Re: JTree
From: Trejkaz Xaoza
Date: Thu, 18 May 2000 00:00
Date: Thu, 18 May 2000 00:00
16 lines
1301 bytes
1301 bytes
"Paul Furbacher [TeamB]" wrote: > I believe you'll have to write the algorithm which fills the tree > model. I think that one of the early third-party JBuilder books > had an example of how to write such an algorithm, but my memory is > a bit foggy on this one. Also, if you search around enough, you > may find a rudimentary example somewhere. As a bit of a hint, I'd suggest you don't try to create the contents of the entire tree before you display the tree. Loading your entire directory hierarchy into a JTree takes quite some time. :-) Consider having nodes load only when they're clicked. Also, you'd need to do something about files and directories being created, changed, and removed. Tricky stuff. TX
Technical Details
Message-ID:
<39237B5E.227F8323@darker.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8eernh$a7c3@bornews.borland.com> <39106510.A9F6E1BD@home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7b98b7ab0d9ea22c X-Google-Attributes: gid111d45,public From: Trejkaz Xaoza <trejkaz@darker.net> Subject: Re: JTree Date: 2000/05/18 Message-ID: <39237B5E.227F8323@darker.net> X-Deja-AN: 624848769 Content-Transfer-Encoding: 7bit References: <8eernh$a7c3@bornews.borland.com> <39106510.A9F6E1BD@home.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing