.. | .. |
---|
15 | 15 | |
---|
16 | 16 | //import com.jamonapi.*; |
---|
17 | 17 | public class Grafreed extends Applet implements ActionListener |
---|
18 | | -{ |
---|
19 | | - static boolean NIMBUSLAF = false; // true; |
---|
20 | | - |
---|
| 18 | +{ |
---|
21 | 19 | static int RENDERME = 0; |
---|
22 | 20 | |
---|
23 | 21 | static boolean epsequal = false; |
---|
.. | .. |
---|
885 | 883 | |
---|
886 | 884 | |
---|
887 | 885 | /**/ |
---|
888 | | - if (NIMBUSLAF) |
---|
| 886 | + if (Globals.NIMBUSLAF) |
---|
889 | 887 | { |
---|
890 | 888 | try |
---|
891 | 889 | { |
---|
892 | | - Object o = UIManager.getInstalledLookAndFeels(); |
---|
| 890 | + //Object o = UIManager.getInstalledLookAndFeels(); |
---|
893 | 891 | |
---|
894 | 892 | javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new javax.swing.plaf.metal.DefaultMetalTheme()); |
---|
895 | 893 | //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.beigeTheme)); |
---|
896 | | - UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()); |
---|
| 894 | + //UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()); |
---|
897 | 895 | |
---|
898 | 896 | UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
899 | 897 | //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel"); |
---|
.. | .. |
---|
901 | 899 | //UIManager.put("nimbusBase", new Color(0,0,0)); |
---|
902 | 900 | |
---|
903 | 901 | javax.swing.UIDefaults ui = UIManager.getDefaults(); |
---|
| 902 | + |
---|
| 903 | + ui.put("TabbedPane.tabInsets", new javax.swing.plaf.InsetsUIResource(0,8,0,0)); |
---|
| 904 | + |
---|
904 | 905 | for (java.util.Enumeration e = ui.keys(); e.hasMoreElements();) |
---|
905 | 906 | { |
---|
906 | 907 | Object key = e.nextElement(); |
---|
.. | .. |
---|
920 | 921 | MetalLookAndFeel.setCurrentTheme(new javax.swing.plaf.metal.DefaultMetalTheme()); |
---|
921 | 922 | //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme)); |
---|
922 | 923 | //UIManager.put("ScrollBar.background", new javax.swing.plaf.ColorUIResource(100,0,0)); |
---|
| 924 | + UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
| 925 | + |
---|
| 926 | + javax.swing.UIDefaults ui = UIManager.getDefaults(); |
---|
| 927 | + |
---|
| 928 | + Object x = ui.get("TabbedPane.background"); |
---|
| 929 | + |
---|
923 | 930 | UIManager.setLookAndFeel(new MetalLookAndFeel()); |
---|
924 | | - //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
925 | 931 | //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel"); |
---|
926 | 932 | //UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); |
---|
927 | 933 | //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
---|
928 | 934 | |
---|
929 | | - javax.swing.UIDefaults ui = UIManager.getDefaults(); |
---|
| 935 | + ui = UIManager.getDefaults(); |
---|
| 936 | + |
---|
930 | 937 | ArrayList gradient = new java.util.ArrayList(5); |
---|
931 | 938 | gradient.add(1.0); |
---|
932 | 939 | gradient.add(0.0); |
---|
.. | .. |
---|
935 | 942 | gradient.add(new javax.swing.plaf.ColorUIResource(0,0,0)); |
---|
936 | 943 | |
---|
937 | 944 | ui.put("Button.gradient", gradient); |
---|
938 | | - ui.put("TabbedPane.tabInsets", new javax.swing.plaf.InsetsUIResource(0,8,0,0)); |
---|
| 945 | + |
---|
| 946 | + //ui.put("RadioButton.icon", ObjEditor.GetIcon("icons/white-sphere-icon.png")); |
---|
| 947 | + //ui.put("RadioButtonMenuItem.checkIcon", ObjEditor.GetIcon("icons/fit.png")); |
---|
| 948 | + //ui.put("RadioButtonMenuItem.arrowIcon", ObjEditor.GetIcon("icons/fit.png")); |
---|
| 949 | + |
---|
939 | 950 | ui.put("Slider.foreground", new javax.swing.plaf.ColorUIResource(0,0,0)); |
---|
940 | 951 | ui.put("Slider.horizontalThumbIcon", ObjEditor.GetIcon("icons/white-sphere-icon.png")); |
---|
941 | 952 | |
---|
| 953 | + /* |
---|
| 954 | +TabbedPane.unselectedBackground Color |
---|
| 955 | +TabbedPane.unselectedTabBackground Color |
---|
| 956 | +TabbedPane.unselectedTabForeground Color |
---|
| 957 | +TabbedPane.unselectedTabHighlight Color |
---|
| 958 | +TabbedPane.unselectedTabShadow |
---|
| 959 | + */ |
---|
| 960 | +// ui.put("TabbedPane.contentAreaColor", new javax.swing.plaf.ColorUIResource(0,100,0)); |
---|
| 961 | + //ui.put("TabbedPane.selected", new javax.swing.plaf.ColorUIResource(200,0,200)); |
---|
| 962 | + |
---|
| 963 | + ui.put("TabbedPane.background", new javax.swing.plaf.ColorUIResource(150,150,150)); |
---|
| 964 | + ui.put("TabbedPane.foreground", new javax.swing.plaf.ColorUIResource(50,50,50)); |
---|
| 965 | + ui.put("TabbedPane.light", new javax.swing.plaf.ColorUIResource(255,255,255)); |
---|
| 966 | + ui.put("TabbedPane.selectedForeground", new javax.swing.plaf.ColorUIResource(0,0,0)); |
---|
| 967 | + ui.put("TabbedPane.selectHighlight", new javax.swing.plaf.ColorUIResource(255,255,255)); |
---|
| 968 | + ui.put("TabbedPane.darkShadow", new javax.swing.plaf.ColorUIResource(0,0,0)); |
---|
| 969 | + |
---|
| 970 | +// ui.put("TabbedPane.shadow", new javax.swing.plaf.ColorUIResource(200,0,0)); |
---|
| 971 | +// ui.put("TabbedPane.tabAreaBackground", new javax.swing.plaf.ColorUIResource(0,200,0)); |
---|
| 972 | +// ui.put("TabbedPane.unselectedBackground", new javax.swing.plaf.ColorUIResource(200,200,0)); |
---|
| 973 | +// ui.put("TabbedPane.unselectedTabBackground", new javax.swing.plaf.ColorUIResource(0,0,200)); |
---|
| 974 | +// ui.put("TabbedPane.unselectedTabForeground", new javax.swing.plaf.ColorUIResource(200,0,200)); |
---|
| 975 | +// ui.put("TabbedPane.unselectedTabHighlight", new javax.swing.plaf.ColorUIResource(0,200,200)); |
---|
| 976 | +// ui.put("TabbedPane.unselectedTabShadow", new javax.swing.plaf.ColorUIResource(200,200,200)); |
---|
| 977 | + |
---|
| 978 | + ui.put("TabbedPane.textIconGap", 0); |
---|
| 979 | + ui.put("TabbedPane.contentBorderInsets", new javax.swing.plaf.InsetsUIResource(0,0,0,0)); |
---|
| 980 | + ui.put("TabbedPane.tabAreaInsets", new javax.swing.plaf.InsetsUIResource(1,1,0,0)); |
---|
| 981 | + ui.put("TabbedPane.tabInsets", new javax.swing.plaf.InsetsUIResource(0,8,0,0)); |
---|
| 982 | + |
---|
| 983 | + Object openIcon2 = ui.get("Tree.openIcon"); |
---|
| 984 | + |
---|
| 985 | + ui.put("Tree.openIcon", ObjEditor.GetIcon("icons/folderopen.png")); |
---|
| 986 | + ui.put("Tree.closedIcon", ObjEditor.GetIcon("icons/folderclose.png")); |
---|
| 987 | + ui.put("Tree.leafIcon", ObjEditor.GetIcon("icons/file.png")); |
---|
| 988 | + |
---|
942 | 989 | //javax.swing.plaf.metal.MetalIconFactory.getHorizontalSliderThumbIcon(). |
---|
943 | 990 | Object o = ui.get("Slider.horizontalThumbIcon"); |
---|
944 | 991 | |
---|