Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4997
| From | Fred <fred.l.kleinschmidt@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Using JFileChooser from modal dialog |
| Date | 2012-02-09 14:40 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <508f9a48-aa4e-46d0-ab0f-fcee1ae6e781@vh10g2000pbc.googlegroups.com> (permalink) |
| References | <02d2e4b3-ab8a-4063-82c9-bd6e991bfac7@lr19g2000pbb.googlegroups.com> |
On Feb 9, 9:59 am, Fred <fred.l.kleinschm...@gmail.com> wrote: > How do I pop up and use a JFileChooser from a modal dialog? > > I find the methods setModalExclusionType and setModalityType, but they > are methods of Window and Dialog; when I pop the file chooser using > showDialog(), how do I get access to the window or frame used to > display it so that I can set its modality? OK, gott it. Just pass the modal dialog (that is popping the FileChooser) to the showDialog() method instead of null (We are using a single FileChooser for the app, which can be popped up from any number of modal or non-modal dialogs) -- Fred K
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Using JFileChooser from modal dialog Fred <fred.l.kleinschmidt@gmail.com> - 2012-02-09 09:59 -0800
Re: Using JFileChooser from modal dialog Fred <fred.l.kleinschmidt@gmail.com> - 2012-02-09 14:40 -0800
Re: Using JFileChooser from modal dialog markspace <-@.> - 2012-02-09 23:07 -0800
Re: Using JFileChooser from modal dialog gosmith666@gmail.com - 2013-09-10 12:26 -0700
Re: Using JFileChooser from modal dialog "John B. Matthews" <nospam@nospam.invalid> - 2013-09-11 06:51 -0400
csiph-web