move gui to another source package
[sw/motorsim] / gui / MotorSim.java
1 import javax.swing.SwingUtilities;
2 import javax.swing.UIManager;
3
4 public class MotorSim {
5
6         public static void main(String args[]) throws Exception {
7
8                 try {
9                         System.setProperty("apple.laf.useScreenMenuBar", "true");
10                         System.setProperty(
11                                         "com.apple.mrj.application.apple.menu.about.name",
12                                         "MotorSim");
13                         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
14                 } catch (Exception e1) {
15                         e1.printStackTrace();
16                 }
17                 SwingUtilities.invokeLater(new Runnable(){
18                         @Override
19                         public void run() {
20                                 new com.billkuker.rocketry.motorsim.visual.workbench.MotorWorkbench().setVisible(true);
21                         }
22                 });
23                 
24         }
25
26 }