🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.programmer
2 messages
2 total messages Started by Gerardo Bentancor Sun, 18 Oct 1998 00:00
Implementing a Directory selection dialog box.
#419
Author: Gerardo Bentancor
Date: Sun, 18 Oct 1998 00:00
15 lines
1361 bytes
Hi all,

I was wondering if anyone has implemented a directory selecting dialog
box.. ie one that looks similar to the FileDialog box in AWT except
that it only allows you to select directories (or create them)..

I'm not quite sure how to write one myself. I was thinking of creating
a dialog with a tree list control.. but then came to the realisation
that I couldn't do it in a machine independant fashion (ie allow the
user to select a drop down box of drives under Windows - I couldn't
find a class or method that would enumerate the drives on a Windows
computer..) Does anyone have any clues?

regards,
gerardo bentancor
Re: Implementing a Directory selection dialog box.
#420
Author: Alexander Anguiano
Date: Mon, 19 Oct 1998 00:00
25 lines
1745 bytes
Hello

There was a class called DirectoryModel that was suppose to be in the
preview class that is not there. This class was suppose to be a view of the
files system.   Anyway,  I think the JFileChooser class may be configured as
a directory viewer.  If that doesn't help look at the FileSystemView class
in swing.  It is call the gateway into the file system.

Gerardo Bentancor wrote in message <362bb4ae.15732994@news.supernews.com>...
>Hi all,
>
>I was wondering if anyone has implemented a directory selecting dialog
>box.. ie one that looks similar to the FileDialog box in AWT except
>that it only allows you to select directories (or create them)..
>
>I'm not quite sure how to write one myself. I was thinking of creating
>a dialog with a tree list control.. but then came to the realisation
>that I couldn't do it in a machine independant fashion (ie allow the
>user to select a drop down box of drives under Windows - I couldn't
>find a class or method that would enumerate the drives on a Windows
>computer..) Does anyone have any clues?
>
>regards,
>gerardo bentancor
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads