Package com.tbg.wms.cli
Class GuiLauncher
java.lang.Object
com.tbg.wms.cli.GuiLauncher
Starts the Swing GUI and keeps the calling process alive until the window closes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidlaunchAndWait(Supplier<? extends JFrame> frameFactory) Launches a frame on the EDT and blocks until it is closed.
-
Method Details
-
launchAndWait
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
-