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_/ /__/
/ \ /_/ / \