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 / GUI / May 2005

Tip: Looking for answers? Try searching our database.

Filechooser appearance

Thread view: 
thewhoracle - 11 May 2005 15:27 GMT
I am using Netbeans.  I need a JFileChooser to pop up in it's own
window,  but i'm not sure how to make this happen.  i'm new to java gui
programming.  could someone please point me in the direction of (or
just provide) a clear-cut example of how to do this,  as I can' seem to
find one?
Steve W. Jackson - 11 May 2005 15:49 GMT
> I am using Netbeans.  I need a JFileChooser to pop up in it's own
> window,  but i'm not sure how to make this happen.  i'm new to java gui
> programming.  could someone please point me in the direction of (or
> just provide) a clear-cut example of how to do this,  as I can' seem to
> find one?

Have you tried the API JavaDocs?  The JFileChooser class has several
methods for displaying it -- as a save dialog, open dialog, or with
custom text for the "approve" button.  All of these take a parent
Component as a parameter and display the JFileChooser in its own window
as a dialog owned by that parent.

If you haven't already, perhaps you should try out the JFC/Swing
tutorial at <http://java.sun.com/docs/books/tutorial/uiswing/index.html>
as a starting point.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Roland - 11 May 2005 22:53 GMT
> I am using Netbeans.  I need a JFileChooser to pop up in it's own
> window,  but i'm not sure how to make this happen.  i'm new to java gui
> programming.  could someone please point me in the direction of (or
> just provide) a clear-cut example of how to do this,  as I can' seem to
> find one?

See
<http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html>

Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \



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.