e.printStackTrace();
System.exit(1);
}
uif.run();
} else {
final Lite uif = new Lite(framework);
ExceptionHandler.setParentComponent(uif);
loadLitePlugins(framework, uif);
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
uif.setVisible(true);
uif.toFront();
uif.requestFocus();
splash.close();
}
});
} catch (Exception e) {
System.err.println("Error loading GUI: " + e.getMessage());
e.printStackTrace();
System.exit(1);
}
uif.run();
}
} catch (Throwable t) {
t.printStackTrace();
JOptionPane.showMessageDialog(null, t, "Error!", JOptionPane.ERROR_MESSAGE);
}