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