Change view type from buttons to drop-down, include 3d figure & realistic
This commit is contained in:
parent
a2afb106d5
commit
4f28eea758
@ -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) {
|
||||||
@ -40,7 +67,7 @@ public class Quick3dMain {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
Application.setPreferences(new SwingPreferences());
|
Application.setPreferences(new SwingPreferences());
|
||||||
|
|
||||||
// Must be done after localization is initialized
|
// Must be done after localization is initialized
|
||||||
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
|
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
|
||||||
|
|
||||||
@ -51,10 +78,10 @@ public class Quick3dMain {
|
|||||||
try {
|
try {
|
||||||
presetLoader.await();
|
presetLoader.await();
|
||||||
} catch ( InterruptedException iex) {
|
} catch ( InterruptedException iex) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
componentPresetDao.load("datafiles", ".*csv");
|
componentPresetDao.load("datafiles", ".*csv");
|
||||||
componentPresetDao.startLoading();
|
componentPresetDao.startLoading();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user