This is what I have and it works:
final JFileChooser fc = new JFileChooser();
int returnVal = fc.showSaveDialog(ApplicationFrame.this);
this is what I found in docs:
********************************************
public int showSaveDialog(java.lang.String extensionFilter)Opens a JFileChooser with the passed String as its File Filter. Will only display files ending with the passed String.
Parameters:
extensionFilter - String representing the extension of the files that will be displayed. For example, to select all Java source files, the String java will be passed. The . is not necessary.
Returns:
One of the following ints is returned:
JFileChooser.CANCEL_OPTION
JFileChooser.APPROVE_OPTION
JFileChooser.ERROR_OPTION if an error occurs or the chooser is dismissed.
********************************************
I've tried it and it doesn't work....![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
final JFileChooser fc = new JFileChooser();
int returnVal = fc.showSaveDialog(ApplicationFrame.this);
this is what I found in docs:
********************************************
public int showSaveDialog(java.lang.String extensionFilter)Opens a JFileChooser with the passed String as its File Filter. Will only display files ending with the passed String.
Parameters:
extensionFilter - String representing the extension of the files that will be displayed. For example, to select all Java source files, the String java will be passed. The . is not necessary.
Returns:
One of the following ints is returned:
JFileChooser.CANCEL_OPTION
JFileChooser.APPROVE_OPTION
JFileChooser.ERROR_OPTION if an error occurs or the chooser is dismissed.
********************************************
I've tried it and it doesn't work....