/[classpath]/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalLookAndFeel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by rabbit78, Fri Apr 15 08:59:05 2005 UTC revision 1.13 by rabbit78, Fri Apr 15 12:01:01 2005 UTC
# Line 39  exception statement from your version. * Line 39  exception statement from your version. *
39  package javax.swing.plaf.metal;  package javax.swing.plaf.metal;
40    
41  import java.awt.Color;  import java.awt.Color;
42    import java.awt.Insets;
43    
44  import javax.swing.UIDefaults;  import javax.swing.UIDefaults;
45  import javax.swing.plaf.ColorUIResource;  import javax.swing.plaf.ColorUIResource;
46  import javax.swing.plaf.FontUIResource;  import javax.swing.plaf.FontUIResource;
# Line 412  public class MetalLookAndFeel extends Ba Line 414  public class MetalLookAndFeel extends Ba
414     * </tr><tr>     * </tr><tr>
415     * <td>Button.background</td><td>0xcccccc</td>     * <td>Button.background</td><td>0xcccccc</td>
416     * </tr><tr>     * </tr><tr>
417       * <td>Button.border</td><td>{@link MetalBorders.ButtonBorder}</td>
418       * </tr><tr>
419       * <td>Button.font</td><td>{@link #getControlTextFont}</td>
420       * </tr><tr>
421       * <td>Button.margin</td><td><code>new java.awt.Insets(2, 14, 2, 14)</code>
422       * </td>
423       * </tr><tr>
424     * <td>CheckBox.background</td><td>0xcccccc</td>     * <td>CheckBox.background</td><td>0xcccccc</td>
425     * </tr><tr>     * </tr><tr>
426     * <td>CheckBoxMenuItem.background</td><td>0xcccccc</td>     * <td>CheckBoxMenuItem.background</td><td>0xcccccc</td>
# Line 445  public class MetalLookAndFeel extends Ba Line 454  public class MetalLookAndFeel extends Ba
454    protected void initComponentDefaults(UIDefaults defaults)    protected void initComponentDefaults(UIDefaults defaults)
455    {    {
456      super.initComponentDefaults(defaults);      super.initComponentDefaults(defaults);
     Color background = new Color(0xcc, 0xcc, 0xcc);  
457      Object[] myDefaults = new Object[] {      Object[] myDefaults = new Object[] {
458        "Button.background", new ColorUIResource(background),        "Button.background", new ColorUIResource(getControl()),
459        "CheckBox.background", new ColorUIResource(background),        "Button.border", MetalBorders.getButtonBorder(),
460        "CheckBoxMenuItem.background", new ColorUIResource(background),        "Button.font", getControlTextFont(),
461        "ToolBar.background", new ColorUIResource(background),        "Button.margin", new Insets(2, 14, 2, 14),
462        "Panel.background", new ColorUIResource(background),        "CheckBox.background", new ColorUIResource(getControl()),
463        "Slider.background", new ColorUIResource(background),        "CheckBoxMenuItem.background", new ColorUIResource(getControl()),
464        "OptionPane.background", new ColorUIResource(background),        "ToolBar.background", new ColorUIResource(getControl()),
465        "ProgressBar.background", new ColorUIResource(background),        "Panel.background", new ColorUIResource(getControl()),
466        "TabbedPane.background", new ColorUIResource(background),        "Slider.background", new ColorUIResource(getControl()),
467        "Label.background", new ColorUIResource(background),        "OptionPane.background", new ColorUIResource(getControl()),
468        "Menu.background", new ColorUIResource(background),        "ProgressBar.background", new ColorUIResource(getControl()),
469        "MenuBar.background", new ColorUIResource(background),        "TabbedPane.background", new ColorUIResource(getControl()),
470        "MenuItem.background", new ColorUIResource(background),        "Label.background", new ColorUIResource(getControl()),
471        "ScrollBar.background", new ColorUIResource(background)        "Menu.background", new ColorUIResource(getControl()),
472          "MenuBar.background", new ColorUIResource(getControl()),
473          "MenuItem.background", new ColorUIResource(getControl()),
474          "ScrollBar.background", new ColorUIResource(getControl())
475      };      };
476      defaults.putDefaults(myDefaults);      defaults.putDefaults(myDefaults);
477    }    }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26