/[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.13 by rabbit78, Fri Apr 15 12:01:01 2005 UTC revision 1.14 by rabbit78, Fri Apr 15 22:09:43 2005 UTC
# Line 439  public class MetalLookAndFeel extends Ba Line 439  public class MetalLookAndFeel extends Ba
439     * </tr><tr>     * </tr><tr>
440     * <td>Label.background</td><td>0xcccccc</td>     * <td>Label.background</td><td>0xcccccc</td>
441     * </tr><tr>     * </tr><tr>
442       * <td>Label.font</td><td>{@link #getControlTextFont}</td>
443       * </tr><tr>
444     * <td>Menu.background</td><td>0xcccccc</td>     * <td>Menu.background</td><td>0xcccccc</td>
445     * </tr><tr>     * </tr><tr>
446     * <td>MenuBar.background</td><td>0xcccccc</td>     * <td>MenuBar.background</td><td>0xcccccc</td>
# Line 468  public class MetalLookAndFeel extends Ba Line 470  public class MetalLookAndFeel extends Ba
470        "ProgressBar.background", new ColorUIResource(getControl()),        "ProgressBar.background", new ColorUIResource(getControl()),
471        "TabbedPane.background", new ColorUIResource(getControl()),        "TabbedPane.background", new ColorUIResource(getControl()),
472        "Label.background", new ColorUIResource(getControl()),        "Label.background", new ColorUIResource(getControl()),
473          "Label.font", getControlTextFont(),
474        "Menu.background", new ColorUIResource(getControl()),        "Menu.background", new ColorUIResource(getControl()),
475        "MenuBar.background", new ColorUIResource(getControl()),        "MenuBar.background", new ColorUIResource(getControl()),
476        "MenuItem.background", new ColorUIResource(getControl()),        "MenuItem.background", new ColorUIResource(getControl()),
# Line 475  public class MetalLookAndFeel extends Ba Line 478  public class MetalLookAndFeel extends Ba
478      };      };
479      defaults.putDefaults(myDefaults);      defaults.putDefaults(myDefaults);
480    }    }
481    
482      /**
483       * Initializes the system color defaults.
484       *
485       * In particular this sets the following keys:
486       *
487       * <table>
488       * <tr>
489       * <th>Key</th><th>Value</th><th>Description</th>
490       * </tr><tr>
491       * <td>control</td><td>0xcccccc</td><td>The default color for components</td>
492       * </tr>
493       * </table>
494       */
495      protected void initSystemColorDefaults(UIDefaults defaults)
496      {
497        super.initSystemColorDefaults(defaults);
498        Object[] uiDefaults;
499        uiDefaults = new Object[] {
500          "control", new ColorUIResource(getControl())
501        };
502        defaults.putDefaults(uiDefaults);
503      }
504    
505  }  }

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

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