Class SwingUtil


  • public class SwingUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SwingUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void activate​(java.lang.Object maybeActivatable)  
      static void addModalTooltip​(javax.swing.AbstractButton button, java.lang.String on, java.lang.String off)  
      static void deactivate​(java.lang.Object maybeActivatable)  
      static void fastRemoveAll​(java.awt.Container c)
      Removes all of a component's children faster than calling removeAll() on it in many cases
      static void pumpPendingEvents()
      Run any events currently in the event queue
      static void removeButtonDecorations​(javax.swing.AbstractButton button)  
      static void syncExec​(java.lang.Runnable r)  
      • 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

      • syncExec

        public static void syncExec​(java.lang.Runnable r)
                             throws java.lang.reflect.InvocationTargetException,
                                    java.lang.InterruptedException
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.InterruptedException
      • removeButtonDecorations

        public static void removeButtonDecorations​(javax.swing.AbstractButton button)
      • addModalTooltip

        public static void addModalTooltip​(javax.swing.AbstractButton button,
                                           java.lang.String on,
                                           java.lang.String off)
      • fastRemoveAll

        public static void fastRemoveAll​(java.awt.Container c)
        Removes all of a component's children faster than calling removeAll() on it in many cases
      • pumpPendingEvents

        public static void pumpPendingEvents()
        Run any events currently in the event queue
      • activate

        public static void activate​(@Nullable
                                    java.lang.Object maybeActivatable)
      • deactivate

        public static void deactivate​(@Nullable
                                      java.lang.Object maybeActivatable)