Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5284

Re: Outside of the EDT: JOptionPane.showMessageDialog

From Knute Johnson <nospam@knutejohnson.com>
Newsgroups comp.lang.java.gui
Subject Re: Outside of the EDT: JOptionPane.showMessageDialog
Date 2012-12-26 22:03 -0800
Organization A noiseless patient Spider
Message-ID <kbgoak$ass$1@dont-email.me> (permalink)
References <EDT-20121227033249@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 12/26/2012 6:44 PM, Stefan Ram wrote:
>    Sometimes, one sees example programs in recent Java books where
>    JOptionPane.showMessageDialog or JOptionPane.showInputDialog
>    is used outside of the EDT.
>
>    So, is this good practice?
>
>    On
>
> http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html
>
>    , I do not find remarks about those methods being thread safe.
>

I looked at the source for JOptionPane and I don't see anything in there 
that would lead me to believe that you could invoke it safely on other 
than the EDT.

-- 

Knute Johnson

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

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