Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.13
diff -u -r1.13 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java 15 Apr 2005 12:01:01 -0000 1.13
+++ javax/swing/plaf/metal/MetalLookAndFeel.java 15 Apr 2005 22:09:09 -0000
@@ -439,6 +439,8 @@
*
* Label.background | 0xcccccc |
*
+ * Label.font | address@hidden #getControlTextFont} |
+ *
* Menu.background | 0xcccccc |
*
* MenuBar.background | 0xcccccc |
@@ -468,6 +470,7 @@
"ProgressBar.background", new ColorUIResource(getControl()),
"TabbedPane.background", new ColorUIResource(getControl()),
"Label.background", new ColorUIResource(getControl()),
+ "Label.font", getControlTextFont(),
"Menu.background", new ColorUIResource(getControl()),
"MenuBar.background", new ColorUIResource(getControl()),
"MenuItem.background", new ColorUIResource(getControl()),
@@ -475,4 +478,28 @@
};
defaults.putDefaults(myDefaults);
}
+
+ /**
+ * Initializes the system color defaults.
+ *
+ * In particular this sets the following keys:
+ *
+ *
+ *
+ * Key | Value | Description |
+ *
+ * control | 0xcccccc | The default color for components |
+ *
+ *
+ */
+ protected void initSystemColorDefaults(UIDefaults defaults)
+ {
+ super.initSystemColorDefaults(defaults);
+ Object[] uiDefaults;
+ uiDefaults = new Object[] {
+ "control", new ColorUIResource(getControl())
+ };
+ defaults.putDefaults(uiDefaults);
+ }
+
}