Tuesday, January 24, 2012

invokeLater vs. invokeAndWait

SwingUtilities.invokeLater(Runnable):
Asynchronous call used to update the GUI from the AWT Event Dispatching Thread.
SwingUtilities.invokeAndWait(Runnable):
Synchronous call used to update the GUI from the application thread.