use of gui.forms.GUIMain in project Botnak by Gocnak.
the class Boot method main.
public static void main(final String[] args) {
/* Thread-safe initialization */
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler());
Runtime.getRuntime().addShutdownHook(new ShutdownHook());
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
setLookAndFeel();
GUIMain g = new GUIMain();
g.setVisible(true);
if (GUIUpdate.checkForUpdate()) {
GUIUpdate gu = new GUIUpdate();
gu.setVisible(true);
}
}
/**
* Tries to set the swing look and feel.
* All relevant exceptions are caught.
*/
private void setLookAndFeel() {
try {
Settings.LAF.load();
UIManager.setLookAndFeel(Settings.lookAndFeel);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
Aggregations