edu.northwestern.at.utils.swing
Class SwingRunner

java.lang.Object
  extended by edu.northwestern.at.utils.swing.SwingRunner

public class SwingRunner
extends java.lang.Object


Constructor Summary
SwingRunner()
           
 
Method Summary
static void runlater(java.lang.Runnable runnable)
          Runs a Runnable on the AWT Event Dispatching Thread without waiting.
static void runNow(java.lang.Runnable runnable)
          Runs and waits for a Runnable on AWT Event Dispatching Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingRunner

public SwingRunner()
Method Detail

runNow

public static void runNow(java.lang.Runnable runnable)
Runs and waits for a Runnable on AWT Event Dispatching Thread.

Parameters:
runnable - Runnable to execute on AWT Event Dispatching thread.

Runs a runnable and waits for it to complete. May be called whether or not the current thread is the AWT Event dispatching thread.


runlater

public static void runlater(java.lang.Runnable runnable)
Runs a Runnable on the AWT Event Dispatching Thread without waiting.

Parameters:
runnable - Runnable to execute on AWT Event Dispatching thread.

Runs a runnable. May be called whether or not the current thread is the AWT Event dispatching thread.