Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: JFileChoose...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 15967 of 16566
Post > Topic >>

Re: JFileChooser

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/
 




 4 Posts in Topic:
JFileChooser
Chase Preuninger <chas  2008-04-13 07:58:04 
Re: JFileChooser
"Matt Humphrey"  2008-04-13 11:26:45 
Re: JFileChooser
Alex.From.Ohio.Java@[EMAI  2008-04-13 09:28:24 
Re: JFileChooser
Roedy Green <see_websi  2008-04-14 03:14:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:17:28 CST 2008.