Hi,
I added initComponentDefaults that initializes the component colors (and later other properties) for Metal.
2005-04-15 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/metal/MetalLookAndFeel.java
(initComponentDefaults): Added to set Metal specific component
defaults./Roman
Index: javax/swing/plaf/metal/MetalLookAndFeel.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v retrieving revision 1.11 diff -u -r1.11 MetalLookAndFeel.java --- javax/swing/plaf/metal/MetalLookAndFeel.java 14 Apr 2005 21:00:02 -0000 1.11 +++ javax/swing/plaf/metal/MetalLookAndFeel.java 15 Apr 2005 08:55:57 -0000 @@ -38,6 +38,7 @@ package javax.swing.plaf.metal; +import java.awt.Color; import javax.swing.UIDefaults; import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.FontUIResource; @@ -399,4 +400,68 @@ defaults.putDefaults(uiDefaults); } + /** + * Initializes the component defaults for the Metal Look & Feel. + * + * In particular this sets the following keys (the colors are given + * as RGB hex values): + * + *
| Key | Value | + *
|---|---|
| Button.background | 0xcccccc | + *
| CheckBox.background | 0xcccccc | + *
| CheckBoxMenuItem.background | 0xcccccc | + *
| ToolBar.background | 0xcccccc | + *
| Panel.background | 0xcccccc | + *
| Slider.background | 0xcccccc | + *
| OptionPane.background | 0xcccccc | + *
| ProgressBar.background | 0xcccccc | + *
| TabbedPane.background | 0xcccccc | + *
| Label.background | 0xcccccc | + *
| Menu.background | 0xcccccc | + *
| MenuBar.background | 0xcccccc | + *
| MenuItem.background | 0xcccccc | + *
| ScrollBar.background | 0xcccccc | + *
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
