The Source for Java Technology Collaboration
User: Password:



Evan Summers

Evan Summers's Blog

Invetigation in Process 1: JOptionPane DTs

Posted by evanx on November 18, 2006 at 03:12 AM | Comments (2)

It seems that we can popup a JOptionPane from a background thread in a SwingWorker without the sky falling in. "But why?"



Ps. The title of this series, "Invetigation in process" comes from an episode of The Office when "Gareth Keenan Investigates!" but mispels "investigate" on his makeshift sign which for his "office." Heh heh. Hee hee. He He. Hmm.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • There is a bug (not sure whether it is fixed in 6.0 or not) that makes showing internal JOptionPane from non-EDT thread impossible.

    Posted by: ixmal on November 20, 2006 at 08:23 AM

  • I'm not sure that showing a JOptionPane outside EDT is a goot idea,
    if you have a JTable behind JOptionPane, showing it causes a JTable repaint, wich is not sinchronized, (like mostly swing components, except JTextField) producing race-conditions. I did it in my project and debugging it was so difficult because the attached listeners to the model !!!

    Maybe I'm wrong...

    Thanks for your great code !!!

    Posted by: aleixmr on November 20, 2006 at 11:47 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds