程序包 proguard.gui

类 SwingUtil


  • public class SwingUtil
    extends java.lang.Object
    This utility class provides variants of the invocation method from the SwingUtilities class.
    另请参阅:
    SwingUtilities
    • 构造器概要

      构造器 
      构造器 说明
      SwingUtil()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void invokeAndWait​(java.lang.Runnable runnable)
      Invokes the given Runnable in the AWT event dispatching thread, and waits for it to finish.
      static void invokeLater​(java.lang.Runnable runnable)
      Invokes the given Runnable in the AWT event dispatching thread, not necessarily right away.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SwingUtil

        public SwingUtil()
    • 方法详细资料

      • invokeAndWait

        public static void invokeAndWait​(java.lang.Runnable runnable)
                                  throws java.lang.InterruptedException,
                                         java.lang.reflect.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.
        参数:
        runnable - the Runnable to be executed.
        抛出:
        java.lang.InterruptedException
        java.lang.reflect.InvocationTargetException
        另请参阅:
        SwingUtilities.invokeAndWait(Runnable)
      • invokeLater

        public static void invokeLater​(java.lang.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.
        参数:
        runnable - the Runnable to be executed.
        另请参阅:
        SwingUtilities.invokeLater(Runnable)