thread safeness of JOptionPane et al

Discussion in 'Java' started by Alex Hunsley, Jan 13, 2004.

  1. Alex Hunsley

    Alex Hunsley Guest

    Jsut a thought... are classes like JOptionPane, JFileChooser etc. that
    show dialogs inherently thread safe?
    In other words, does it matter if you're in the event despatch thread
    (a.k.a. GUI thread) or not when you call them?
    I've had a look at the source for JOptionPane and can see no mention of
    SwingUtilities.invokeLater or SwingUtilities.invokeAndWait, so if it is
    thread safe, I'm not sure how it's doing it...

    alex
     
    Alex Hunsley, Jan 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SuperChuck
    Replies:
    3
    Views:
    4,116
    Sandip Chitale
    Aug 7, 2003
  2. Joseph M. DeAngelo
    Replies:
    0
    Views:
    1,138
    Joseph M. DeAngelo
    Nov 9, 2003
  3. Alex Hunsley
    Replies:
    13
    Views:
    570
    Jon A. Cruz
    Jan 17, 2004
  4. jazzy

    Using JOptionPane

    jazzy, Apr 18, 2004, in forum: Java
    Replies:
    0
    Views:
    394
    jazzy
    Apr 18, 2004
  5. jazzy

    Using JOptionPane

    jazzy, Apr 18, 2004, in forum: Java
    Replies:
    0
    Views:
    598
    jazzy
    Apr 18, 2004
Loading...

Share This Page