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> |
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()), |
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 |
} |
} |