Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2006

Tip: Looking for answers? Try searching our database.

File browser GUI in Java/SWT ?

Thread view: 
me2 - 05 Nov 2006 18:02 GMT
I have an app that needs to allow a user to select a directory to save a
file in.  Basically I need a file browser GUI.  Does Java/SWT have such an
object ?

Thanks
Eric Sosman - 05 Nov 2006 19:44 GMT
> I have an app that needs to allow a user to select a directory to save a
> file in.  Basically I need a file browser GUI.  Does Java/SWT have such an
> object ?

    FileChooser.

Signature

Eric Sosman
esosman@acm-dot-org.invalid

me2 - 07 Nov 2006 17:31 GMT
Is filechooser a swing object ?  I am using SWT.   Does that matter ?
me2 - 07 Nov 2006 22:20 GMT
> Is filechooser a swing object ?  I am using SWT.   Does that matter ?

There is a file browser for SWT called FileDialog.   Its in
org.eclipse.swt.widgets.FileDialog
Eric Sosman - 08 Nov 2006 01:54 GMT
>>Is filechooser a swing object ?  I am using SWT.   Does that matter ?

    My apologies: I read your request too hastily.  FileChooser
is indeed a Swing class; I have no idea what equivalent SWT may
have.

> There is a file browser for SWT called FileDialog.   Its in
> org.eclipse.swt.widgets.FileDialog

    Sounds plausible.  Was the documentation encouraging?

Signature

Eric Sosman
esosman@acm-dot-org.invalid

me2 - 08 Nov 2006 18:57 GMT
>      My apologies: I read your request too hastily.  FileChooser
> is indeed a Swing class; I have no idea what equivalent SWT may
[quoted text clipped - 4 lines]
>
>      Sounds plausible.  Was the documentation encouraging?

Yep, the documentation was encouraging and it flat out works. I've since
written and tested it.

Thanks for your help.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.