/[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.6.2.3 by gnu_andrew, Mon Apr 18 01:37:40 2005 UTC revision 1.6.2.4 by gnu_andrew, Thu Apr 28 23:00:14 2005 UTC
# Line 1  Line 1 
1  /* MetalLookAndFeel.java  /* MetalLookAndFeel.java
2     Copyright (C) 2002 Free Software Foundation, Inc.     Copyright (C) 2002, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 92  public class MetalLookAndFeel extends Ba Line 92  public class MetalLookAndFeel extends Ba
92      if (LAF_defaults == null)      if (LAF_defaults == null)
93        LAF_defaults = super.getDefaults();        LAF_defaults = super.getDefaults();
94    
95        // add custom theme entries to the table
96        theme.addCustomEntriesToTable(LAF_defaults);
97        
98      // Returns the default values for this look and feel.      // Returns the default values for this look and feel.
99      return LAF_defaults;      return LAF_defaults;
100    }    }
# Line 449  public class MetalLookAndFeel extends Ba Line 452  public class MetalLookAndFeel extends Ba
452     * </tr><tr>     * </tr><tr>
453     * <td>ScrollBar.background</td><td>0xcccccc</td>     * <td>ScrollBar.background</td><td>0xcccccc</td>
454     * </tr><tr>     * </tr><tr>
455       * <td>PopupMenu.border</td>
456       * <td><code>new javax.swing.plaf.metal.MetalBorders.PopupMenuBorder()</td>
457       * </tr><tr>
458     * </table>     * </table>
459     *     *
460     * @param defaults the UIDefaults instance to which the values are added     * @param defaults the UIDefaults instance to which the values are added
# Line 459  public class MetalLookAndFeel extends Ba Line 465  public class MetalLookAndFeel extends Ba
465      Object[] myDefaults = new Object[] {      Object[] myDefaults = new Object[] {
466        "Button.background", new ColorUIResource(getControl()),        "Button.background", new ColorUIResource(getControl()),
467        "Button.border", MetalBorders.getButtonBorder(),        "Button.border", MetalBorders.getButtonBorder(),
468          "Button.darkShadow", new ColorUIResource(getControlDarkShadow()),
469          "Button.disabledText", new ColorUIResource(getControlDisabled()),
470          "Button.focus", new ColorUIResource(getFocusColor()),
471        "Button.font", getControlTextFont(),        "Button.font", getControlTextFont(),
472          "Button.foreground", new ColorUIResource(getSystemTextColor()),
473          "Button.highlight", new ColorUIResource(getControlHighlight()),
474          "Button.light", new ColorUIResource(getControlHighlight()),
475        "Button.margin", new Insets(2, 14, 2, 14),        "Button.margin", new Insets(2, 14, 2, 14),
476          "Button.select", new ColorUIResource(getPrimaryControlShadow()),
477          "Button.shadow", new ColorUIResource(getPrimaryControlShadow()),
478        "CheckBox.background", new ColorUIResource(getControl()),        "CheckBox.background", new ColorUIResource(getControl()),
479        "CheckBoxMenuItem.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.background", new ColorUIResource(getControl()),
480        "ToolBar.background", new ColorUIResource(getControl()),        "ToolBar.background", new ColorUIResource(getControl()),
# Line 468  public class MetalLookAndFeel extends Ba Line 482  public class MetalLookAndFeel extends Ba
482        "Slider.background", new ColorUIResource(getControl()),        "Slider.background", new ColorUIResource(getControl()),
483        "OptionPane.background", new ColorUIResource(getControl()),        "OptionPane.background", new ColorUIResource(getControl()),
484        "ProgressBar.background", new ColorUIResource(getControl()),        "ProgressBar.background", new ColorUIResource(getControl()),
485          "ScrollPane.border", new MetalBorders.ScrollPaneBorder(),
486        "TabbedPane.background", new ColorUIResource(getControl()),        "TabbedPane.background", new ColorUIResource(getControl()),
487        "Label.background", new ColorUIResource(getControl()),        "Label.background", new ColorUIResource(getControl()),
488        "Label.font", getControlTextFont(),        "Label.font", getControlTextFont(),
489          "Label.disabledForeground", new ColorUIResource(getControlDisabled()),
490          "Label.foreground", new ColorUIResource(getSystemTextColor()),
491        "Menu.background", new ColorUIResource(getControl()),        "Menu.background", new ColorUIResource(getControl()),
492          "Menu.font", getControlTextFont(),
493        "MenuBar.background", new ColorUIResource(getControl()),        "MenuBar.background", new ColorUIResource(getControl()),
494          "MenuBar.font", getControlTextFont(),
495        "MenuItem.background", new ColorUIResource(getControl()),        "MenuItem.background", new ColorUIResource(getControl()),
496        "ScrollBar.background", new ColorUIResource(getControl())        "MenuItem.font", getControlTextFont(),
497          "ScrollBar.background", new ColorUIResource(getControl()),
498          "ScrollBar.shadow", new ColorUIResource(getControlShadow()),
499          "ScrollBar.thumb", new ColorUIResource(getPrimaryControlShadow()),
500          "ScrollBar.thumbDarkShadow",
501          new ColorUIResource(getPrimaryControlDarkShadow()),
502          "ScrollBar.thumbHighlight",
503          new ColorUIResource(getPrimaryControl()),
504          "PopupMenu.border", new MetalBorders.PopupMenuBorder()
505      };      };
506      defaults.putDefaults(myDefaults);      defaults.putDefaults(myDefaults);
507    }    }

Legend:
Removed from v.1.6.2.3  
changed lines
  Added in v.1.6.2.4

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