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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@knutejohnson.com>
Newsgroups comp.lang.java.gui
Subject Re: Outside of the EDT: JOptionPane.showMessageDialog
Date Wed, 26 Dec 2012 22:03:00 -0800
Organization A noiseless patient Spider
Lines 21
Message-ID <kbgoak$ass$1@dont-email.me> (permalink)
References <EDT-20121227033249@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Thu, 27 Dec 2012 06:03:00 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="9b3fcb0d22708969e4dc99e7aa0ef1f9"; logging-data="11164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mmZ3nzf+P5qgieukXC36r"
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
In-Reply-To <EDT-20121227033249@ram.dialup.fu-berlin.de>
Cancel-Lock sha1:UsFflkqOkijaPJT9gzthGBPxYos=
Xref csiph.com comp.lang.java.gui:5284

Show key headers only | 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 | Unroll thread


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