Class SwingUtils

java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.SwingUtils

public final class SwingUtils extends Object
Swing / AWT utility class
  • Field Details

    • LOG

      private static final Logger LOG
    • DEBUG_EDT

      private static final boolean DEBUG_EDT
    • INFO_DIALOG

      private static final boolean INFO_DIALOG
      See Also:
    • TRACE_INVOKE_EDT

      private static final boolean TRACE_INVOKE_EDT
      See Also:
    • TRACE_TG

      private static final boolean TRACE_TG
      See Also:
    • DO_SETUP

      private static boolean DO_SETUP
    • MAIN_GROUP

      private static final ThreadGroup MAIN_GROUP
      main thread group (initialized at startup)
    • window

      private static Window window
  • Constructor Details

    • SwingUtils

      private SwingUtils()
  • Method Details

    • setup

      public static void setup()
    • trace

      static void trace(String msg)
    • traceWithStack

      private static void traceWithStack(String msg)
    • info

      public static void info(Window dialog)
    • checkEDT

      private static void checkEDT()
    • isMainThreadGroup

      private static boolean isMainThreadGroup()
    • getWindowAncestor

      public static Window getWindowAncestor(Component c)
    • isEventDispatchThread

      public static boolean isEventDispatchThread()
    • invokeLater

      public static void invokeLater(Runnable doRun)
    • invokeRunnableOrEnqueueLater

      public static void invokeRunnableOrEnqueueLater(Runnable runnable)
    • callOnAppContext

      public static void callOnAppContext(Runnable doRun) throws InterruptedException, InvocationTargetException
      Throws:
      InterruptedException
      InvocationTargetException
    • invokeAndWait

      public static void invokeAndWait(Runnable doRun)
    • getOrCreateWindowOwner

      public static Window getOrCreateWindowOwner()