by Alex.From.Ohio.Java@[EMAIL PROTECTED]
Apr 13, 2008 at 09:28 AM
On Apr 13, 10:58 am, Chase Preuninger <chasepreunin...@[EMAIL PROTECTED]
>
wrote:
> for some reason when I open this dialog the button still says "Open"
>
> chooser.setDialogType(JFileChooser.SAVE_DIALOG);
> chooser.setMultiSelectionEnabled(false);
> chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
> chooser.setSelectedFile(new File(f.getName()));
See examples here:
http://exampledepot.com/egs/javax.swing.filechooser/pkg.html
And, BTW, use this site for short, quick and precise examples of any
kind of Java sniplets:
http://exampledepot.com/
I use it for years since it was http://javaalmanac.com
Alex.
http://www.myjavaserver.com/~alexfromohio/