wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JFileChooser to save file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser to save file" Watch "JFileChooser to save file" New topic
Author

JFileChooser to save file

Danny Paul
Greenhorn

Joined: Sep 22, 2004
Posts: 1
hi,

i m new to java, i m trying to learn the GUI swing.

can anyone tell me how to save a file using JFileChooser.
i know a method jf.showSaveDialog(null). but how to use this method to save a file.

Danny
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Once you show the dialog, the user selects a file and then presses the APPROVE_BUTTON. After that it is up to you to physically save the file.


Cheers,
Rachel
chris forbes
Greenhorn

Joined: Mar 05, 2010
Posts: 1
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39415
    
  28
Welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser to save file