Class SwingUtilities2


  • public class SwingUtilities2
    extends java.lang.Object
    Utility class for Swing related functions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void invokeAndWait​(@NotNull java.lang.Runnable runnable)
      Calls SwingUtilities.invokeAndWait(Runnable) if not on the EDT or calls the Runnable directly if on the EDT.
      static void invokeLater​(@NotNull java.lang.Runnable runnable)
      Calls SwingUtilities.invokeLater(Runnable) if not on the EDT or calls the Runnable directly if on the EDT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • invokeAndWait

        public static void invokeAndWait​(@NotNull
                                         @NotNull java.lang.Runnable runnable)
        Calls SwingUtilities.invokeAndWait(Runnable) if not on the EDT or calls the Runnable directly if on the EDT.
        Parameters:
        runnable - the runnable to call
      • invokeLater

        public static void invokeLater​(@NotNull
                                       @NotNull java.lang.Runnable runnable)
        Calls SwingUtilities.invokeLater(Runnable) if not on the EDT or calls the Runnable directly if on the EDT.
        Parameters:
        runnable - the runnable to call