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 4 of 4 Topic 15967 of 16566
Post > Topic >>

Re: JFileChooser

by Roedy Green <see_website@[EMAIL PROTECTED] > Apr 14, 2008 at 03:14 AM

On Sun, 13 Apr 2008 07:58:04 -0700 (PDT), Chase Preuninger
<chasepreuninger@[EMAIL PROTECTED]
> wrote, quoted or indirectly quoted someone
who said :

>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 http://mindprod.com/jgloss/jfilechooser.html
for sample code.
-- 

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 




 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 16:01:44 CST 2008.