Class GuiLauncher

java.lang.Object
com.tbg.wms.cli.GuiLauncher

public final class GuiLauncher extends Object
Starts the Swing GUI and keeps the calling process alive until the window closes.
  • Method Details

    • launchAndWait

      public static void launchAndWait(Supplier<? extends JFrame> frameFactory)
      Launches a frame on the EDT and blocks until it is closed.
      Parameters:
      frameFactory - factory that builds the GUI frame
      Throws:
      IllegalStateException - when the GUI cannot be started