proguard.gui
Class SwingUtil

java.lang.Object
  extended by proguard.gui.SwingUtil

public class SwingUtil
extends Object

This utility class provides variants of the invocation method from the SwingUtilities class.

Author:
Eric Lafortune
See Also:
SwingUtilities

Constructor Summary
SwingUtil()
           
 
Method Summary
static void invokeAndWait(Runnable runnable)
          Invokes the given Runnable in the AWT event dispatching thread, and waits for it to finish.
static void invokeLater(Runnable runnable)
          Invokes the given Runnable in the AWT event dispatching thread, not necessarily right away.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingUtil

public SwingUtil()
Method Detail

invokeAndWait

public static void invokeAndWait(Runnable runnable)
                          throws InterruptedException,
                                 InvocationTargetException
Invokes the given Runnable in the AWT event dispatching thread, and waits for it to finish. This method may be called from any thread, including the event dispatching thread itself.

Parameters:
runnable - the Runnable to be executed.
Throws:
InterruptedException
InvocationTargetException
See Also:
SwingUtilities.invokeAndWait(Runnable)

invokeLater

public static void invokeLater(Runnable runnable)
Invokes the given Runnable in the AWT event dispatching thread, not necessarily right away. This method may be called from any thread, including the event dispatching thread itself.

Parameters:
runnable - the Runnable to be executed.
See Also:
SwingUtilities.invokeLater(Runnable)


Copyright © 2012. All Rights Reserved.