public class GUILauncher extends Object
| Constructor and Description |
|---|
GUILauncher() |
| Modifier and Type | Method and Description |
|---|---|
static MekaFrame |
launchApplication(Class panelCls,
String title,
boolean center,
String[] args)
Embeds the panel in a frame and displays.
|
static MekaFrame |
launchFrame(Class panelCls,
String title,
boolean center)
Embeds the panel in a frame and displays.
|
static MekaFrame |
launchFrame(JPanel panel,
String title,
boolean center)
Embeds the panel in a frame and displays.
|
public static MekaFrame launchFrame(Class panelCls, String title, boolean center) throws Exception
panelCls - the panel class to instantiated and place in the frametitle - the title for the fraamecenter - whether to center the frameException - if failed to instantiate panelpublic static MekaFrame launchFrame(JPanel panel, String title, boolean center)
panel - the panel to place in the frametitle - the title for the fraamecenter - whether to center the framepublic static MekaFrame launchApplication(Class panelCls, String title, boolean center, String[] args) throws Exception
panelCls - the panel class to instantiated and place in the frametitle - the title for the fraamecenter - whether to center the frameargs - the commandline argumentsException - if failed to instantiate panelCopyright © 2017. All Rights Reserved.