8dd1c119b3339645d03dc4076170cee43a854040
[sw/motorsim] / gui / MotorSim.java
1 import javax.swing.SwingUtilities;
2 import javax.swing.UIManager;
3
4 import com.billkuker.rocketry.motorsim.visual.workbench.MotorWorkbench;
5
6 public class MotorSim {
7
8         public static void main(String args[]) throws Exception {
9
10                 try {
11                         System.setProperty("apple.laf.useScreenMenuBar", "true");
12                         System.setProperty(
13                                         "com.apple.mrj.application.apple.menu.about.name",
14                                         "MotorSim");
15                         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
16                 } catch (Exception e1) {
17                         e1.printStackTrace();
18                 }
19                 new Splash("splash.png",null, 2000);
20                 final MotorWorkbench mw = new com.billkuker.rocketry.motorsim.visual.workbench.MotorWorkbench();
21                 Thread.sleep(2000);
22                 SwingUtilities.invokeLater(new Runnable(){
23                         @Override
24                         public void run() {
25                                 mw.setVisible(true);
26                         }
27                 });
28                 
29                 
30         }
31
32 }