Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3383
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JFileChooser |
| Message-ID | <kvi504dpra719ousl30tm0ctphcc7mh55i@4ax.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <0f64879b-ac9b-47f7-8ad4-25883ee4523f@q24g2000prf.googlegroups.com> |
| Date | 2011-04-27 15:44 +0000 |
| Organization | TDS.net |
To: comp.lang.java.programmer On Sun, 13 Apr 2008 07:58:04 -0700 (PDT), Chase Preuninger <chasepreuninger@gmail.com> 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 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
JFileChooser "Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000 Re: JFileChooser "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
csiph-web