|
From: | Roman Kennke |
Subject: | [cp-patches] FYI: Added initComponentDefaults to MetalLookAndFeel |
Date: | Fri, 15 Apr 2005 10:59:32 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
Hi,I added initComponentDefaults that initializes the component colors (and later other properties) for Metal.
2005-04-15 Roman Kennke <address@hidden> * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): Added to set Metal specific component defaults. /RomanIndex: 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 | + *
[Prev in Thread] | Current Thread | [Next in Thread] |