Article View: borland.public.jbuilder.java.api
Article #3563Re: TreeControl- How to display folders?
From: Andrew Bennett
Date: Thu, 04 Dec 1997 00:00
Date: Thu, 04 Dec 1997 00:00
26 lines
1404 bytes
1404 bytes
Rekha Venkatesh wrote: > Hi > I need to build a tree structure which shows all my files and > directory's and allow the user to choose only directory. I need to simulate > the dialog window which appears when you click on "File|Project > Properties|Browse" button. I know how to add text and images on a tree > control. But how do I get the information of all the drives, and folders > within it?. Is there a command which returns an array of drives on a > particular computer?. Any help/hints on how it can be done is appreciated. Check out java.io.File, specifically, it's list() method. You can do a list(), and based on other methods in java.io.File, populate a tree. Andrew -- Andrew Bennett -> abennett@borland.com JBuilder info -> http://www.borland.com/jbuilder/ JBuilder newsgroups info -> http://www.borland.com/newsgroups/ **** Please don't post a reply AND send email. Do one. I'll see it. ****
Technical Details
Message-ID:
<3486F90B.596EBC33@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd00c7$daffc8d0$18d812c7@rvenkatesh>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,f5f89eec57ac8ac X-Google-Attributes: gid1089d0,public From: Andrew Bennett <abennett@borland.com> Subject: Re: TreeControl- How to display folders? Date: 1997/12/04 Message-ID: <3486F90B.596EBC33@borland.com> X-Deja-AN: 295224600 References: <01bd00c7$daffc8d0$18d812c7@rvenkatesh> Organization: None Newsgroups: borland.public.jbuilder.java.api