Change view type from buttons to drop-down, include 3d figure & realistic

This commit is contained in:
Bill Kuker 2012-07-06 19:28:08 +00:00 committed by U-WINDOWS-C28163E\Administrator
parent a2afb106d5
commit 4f28eea758

View File

@ -28,6 +28,33 @@ public class Quick3dMain {
* @param args * @param args
*/ */
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
Application.setExceptionHandler(new ExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable throwable) {
throwable.printStackTrace();
}
@Override
public void handleErrorCondition(Throwable exception) {
exception.printStackTrace();
}
@Override
public void handleErrorCondition(String message, Throwable exception) {
exception.printStackTrace();
}
@Override
public void handleErrorCondition(String message) {
System.err.println(message);
}
});
Application.setBaseTranslator(new ResourceBundleTranslator("l10n.messages"));
Application.setBaseTranslator(new ResourceBundleTranslator( Application.setBaseTranslator(new ResourceBundleTranslator(
"l10n.messages")); "l10n.messages"));
Application.setMotorSetDatabase(new ThrustCurveMotorSetDatabase(false) { Application.setMotorSetDatabase(new ThrustCurveMotorSetDatabase(false) {