Normand Briere
2019-04-22 c60a1ad4f6aa4904e80280586b440a584b5ff061
GrafreeD.java
....@@ -50,7 +50,7 @@
5050 universe.material = new cMaterial();
5151 //god.addChild(universe);
5252 universe.name = "Applet";
53
- theApplet3D = this;
53
+ grafreeD = this;
5454 }
5555
5656 /**/
....@@ -595,7 +595,7 @@
595595
596596 public static void main(String argv[])
597597 {
598
- if (argv.length == 0)
598
+ if (false) // argv.length == 0)
599599 {
600600 String javaPath = System.getProperty("java.home") + "/bin/java";
601601 java.net.URL u = new GrafreeD().getClass().getResource("default.png");
....@@ -742,24 +742,28 @@
742742 try
743743 {
744744 MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
745
- //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.beigeTheme));
745
+ MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme));
746746 UIManager.setLookAndFeel(new MetalLookAndFeel());
747
+ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
748
+ //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel");
749
+ //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
747750 } catch (Exception e)
748751 {
749752 }
750753
751754 //Monitor mon=MonitorFactory.start("myFirstMonitor");
752755 standAlone = true;
753
- theApplet3D = new GrafreeD();
754
- theApplet3D.universe = new Composite();
755
- theApplet3D.universe.name = "Scene";
756
- theApplet3D.universe.material = new cMaterial();
756
+ grafreeD = new GrafreeD();
757
+ grafreeD.universe = new Composite();
758
+ grafreeD.universe.name = "Scene";
759
+ grafreeD.universe.material = new cMaterial();
757760 // theApplet3D.universe.textures = CameraPane.DEFAULT_TEXTURE;
758761
759
- theApplet3D.universe.root = true;
760
- theApplet3D.universe.openEditWindow(null, true); //, true);
762
+ grafreeD.universe.root = true;
763
+ grafreeD.universe.openEditWindow(null, true); //, true);
761764 //mon.stop();
762765 //System.out.println(mon);
766
+ //timeflow.app.TimeflowAppLauncher.GetTimeFlow();
763767 }
764768
765769 // Timer callback
....@@ -984,7 +988,7 @@
984988 } while (avail > 0 && numRead >= 0);
985989 return new String(data, 0, pos, "US-ASCII");
986990 }
987
- public static GrafreeD theApplet3D;
991
+ public static GrafreeD grafreeD;
988992 public static boolean standAlone = true;
989993 public Composite universe;
990994 public static Object3D clipboard = new Object3D();