2 Replies Latest reply: Apr 25, 2009 11:45 AM by 807588 RSS

    What is the advantage of using EventQueue.invokeLater ?

    800394
      Hi, what is the advantage of using
      public static void main(String args[]) {
              java.awt.EventQueue.invokeLater(new Runnable() {
                  public void run() {
                      new MainForm().setVisible(true);
                  }
              });
      }
      over
      public static void main(String args[]) {
           new MainForm().setVisible(true);
      }