chrriis.uihierarchy.compatibility
Class SwingUtilities

java.lang.Object
  extended bychrriis.uihierarchy.compatibility.SwingUtilities

public class SwingUtilities
extends Object

The SwingUtilities compatible version.

Version:
1.0 2004.01.11
Author:
Christopher Deckers (chrriis@brainlex.com)

Constructor Summary
SwingUtilities()
           
 
Method Summary
static void invokeAndWait(Runnable runnable)
          Runs a Runnable in the dispatch thread.
static void invokeLater(Runnable runnable)
          Run a Runnable in the event dispatch thread, asynchronously.
static boolean isEventDispatchThread()
          Indicate if the current thread is the event dispatch thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingUtilities

public SwingUtilities()
Method Detail

isEventDispatchThread

public static boolean isEventDispatchThread()
Indicate if the current thread is the event dispatch thread.

Returns:
True if the current thread is the dispatch thread.

invokeLater

public static void invokeLater(Runnable runnable)
Run a Runnable in the event dispatch thread, asynchronously.

Parameters:
runnable - The action to run.

invokeAndWait

public static void invokeAndWait(Runnable runnable)
                          throws InterruptedException,
                                 InvocationTargetException
Runs a Runnable in the dispatch thread.

Parameters:
runnable - The action to run.
Throws:
InterruptedException - If interrupted.
InvocationTargetException - If exception on target.