com.photoviewer.client.util
Class ThinletUtilities
java.lang.Object
|
+--com.photoviewer.client.util.ThinletUtilities
- public class ThinletUtilities
- extends java.lang.Object
Utility class to execute Runnables in the AWTEvent thread. This is necessary
when updating GUIs from a non-event thread. Unfortunately, I have not yet
created a Java 1.1 version, so I am using the version from SwingUtilities,
which means you need to use either Java 1.2 or later, or swingall.jar plus
Java 1.1
- Author:
- John De Regnaucourt
Method Summary |
static void |
invokeAndWait(java.lang.Runnable cmd)
Synchronously execute the passed in Runnable in the AWTEvent thread. |
static void |
invokeLater(java.lang.Runnable cmd)
Asynchronously execute the passed in Runnable in the AWTEvent thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThinletUtilities
public ThinletUtilities()
invokeLater
public static void invokeLater(java.lang.Runnable cmd)
- Asynchronously execute the passed in Runnable in the AWTEvent thread.
- Parameters:
cmd
- Runnable to execute in the event thread.
invokeAndWait
public static void invokeAndWait(java.lang.Runnable cmd)
throws java.lang.InterruptedException
- Synchronously execute the passed in Runnable in the AWTEvent thread.
- Parameters:
cmd
- Runnable to execute.