.. | .. |
---|
15 | 15 | //import com.jamonapi.*; |
---|
16 | 16 | public class GrafreeD extends Applet implements ActionListener |
---|
17 | 17 | { |
---|
| 18 | + static boolean NIMBUSLAF = true; |
---|
| 19 | + |
---|
18 | 20 | static int RENDERME = 0; |
---|
19 | 21 | |
---|
20 | 22 | static boolean epsequal = false; |
---|
.. | .. |
---|
801 | 803 | // PlayAudio("/Users/nbriere/Downloads/Footsteps-6.wav", 4, 1); |
---|
802 | 804 | |
---|
803 | 805 | |
---|
804 | | - |
---|
805 | | - try |
---|
| 806 | +/**/ |
---|
| 807 | + if (NIMBUSLAF) |
---|
806 | 808 | { |
---|
807 | | - MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); |
---|
808 | | - MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme)); |
---|
809 | | - UIManager.setLookAndFeel(new MetalLookAndFeel()); |
---|
810 | | - //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
| 809 | + try |
---|
| 810 | + { |
---|
| 811 | + Object o = UIManager.getInstalledLookAndFeels(); |
---|
| 812 | + |
---|
| 813 | + javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new javax.swing.plaf.metal.DefaultMetalTheme()); |
---|
| 814 | + //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.beigeTheme)); |
---|
| 815 | + UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()); |
---|
| 816 | + |
---|
| 817 | + UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
811 | 818 | //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel"); |
---|
812 | 819 | //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
---|
813 | | - } catch (Exception e) |
---|
814 | | - { |
---|
| 820 | + //UIManager.put("nimbusBase", new Color(0,0,0)); |
---|
| 821 | + } |
---|
| 822 | + catch (Exception e) |
---|
| 823 | + { |
---|
| 824 | + } |
---|
815 | 825 | } |
---|
| 826 | + else |
---|
| 827 | + { |
---|
| 828 | + try |
---|
| 829 | + { |
---|
| 830 | + MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); |
---|
| 831 | + MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme)); |
---|
| 832 | + UIManager.setLookAndFeel(new MetalLookAndFeel()); |
---|
| 833 | + //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
| 834 | + //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel"); |
---|
| 835 | + //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
---|
| 836 | + } catch (Exception e) |
---|
| 837 | + { |
---|
| 838 | + } |
---|
| 839 | + } |
---|
| 840 | +/**/ |
---|
816 | 841 | |
---|
| 842 | +// javax.swing.ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false); |
---|
| 843 | + |
---|
817 | 844 | //Monitor mon=MonitorFactory.start("myFirstMonitor"); |
---|
818 | 845 | standAlone = true; |
---|
819 | 846 | grafreeD = new GrafreeD(); |
---|