Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5290
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Outside of the EDT: JOptionPane.showMessageDialog |
| Date | 2012-12-27 16:34 -0500 |
| Organization | The Wasteland |
| Message-ID | <nospam-68BF57.16343427122012@news.aioe.org> (permalink) |
| References | <EDT-20121227033249@ram.dialup.fu-berlin.de> <kbgoak$ass$1@dont-email.me> <showMessageDialog-20121227071317@ram.dialup.fu-berlin.de> <nospam-D5E268.10234727122012@news.aioe.org> <EDT-20121227165216@ram.dialup.fu-berlin.de> |
In article <EDT-20121227165216@ram.dialup.fu-berlin.de>,
ram@zedat.fu-berlin.de (Stefan Ram) wrote:
> "John B. Matthews" <nospam@nospam.invalid> writes:
> >I'd say no. If the dialog is not constructed on the EDT, then
>
> I the meantime, I also started to see it this way. So, then
>
> public static void main( final java.lang.String args[] )
> { final java.lang.String name = JOptionPane.showInputDialog
> ( "Hi, what's your name?" ); /* ... */ }
>
> is no good idea in a beginner's book (I saw something like
> this in a Java textbook from 2011).
I can see this as an introductory example with the footnote,
"The example is incorrect, as we'll learn in chapter _n_."
The Runnable variation might merit a nearby explanation
along these lines:
<http://docs.oracle.com/javase/tutorial/uiswing/concurrency/initial.html>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Outside of the EDT: JOptionPane.showMessageDialog Knute Johnson <nospam@knutejohnson.com> - 2012-12-26 22:03 -0800
Re: Outside of the EDT: JOptionPane.showMessageDialog "John B. Matthews" <nospam@nospam.invalid> - 2012-12-27 10:23 -0500
Re: Outside of the EDT: JOptionPane.showMessageDialog Knute Johnson <nospam@knutejohnson.com> - 2012-12-27 09:06 -0800
Re: Outside of the EDT: JOptionPane.showMessageDialog "John B. Matthews" <nospam@nospam.invalid> - 2012-12-27 16:16 -0500
Re: Outside of the EDT: JOptionPane.showMessageDialog "John B. Matthews" <nospam@nospam.invalid> - 2012-12-27 16:34 -0500
Re: Outside of the EDT: JOptionPane.showMessageDialog "John B. Matthews" <nospam@nospam.invalid> - 2012-12-29 10:38 -0500
Re: Outside of the EDT: JOptionPane.showMessageDialog Lew <lewbloch@gmail.com> - 2012-12-31 12:00 -0800
csiph-web