[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: fixed basic UI's installDefault methods
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: fixed basic UI's installDefault methods |
Date: |
Wed, 12 Oct 2005 14:12:33 +0200 (CEST) |
My previous patch implemented the LookAndFeel.install* methods, which are
used to install colors, fonts and borders to the components. I now fixed
all Basic UIs to make use of these methods. This has the advantage, that
now the UIs only override these properties, if they are null or an
instance of UIResource. Custom set properties are _not_ overridden.
/Roman
2005-10-12 Roman Kennke <address@hidden>
* javax/swing/plaf/basic/BasicButtonUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java
(installDefaults): Use UIManager.get* methods instead of
UIManager.getDefaults().get* methods.
* javax/swing/plaf/basic/BasicColorChooserUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicComboBoxUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicDesktopPaneUI.java
(installDefaults): Only install background color, if installed
color is null or an UIResource instance.
* javax/swing/plaf/basic/BasicInternalFrameUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicLabelUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicListUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Added default for List.font.
* javax/swing/plaf/basic/BasicMenuBarUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicMenuItemUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicMenuUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicOptionPaneUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicPanelUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicPopupMenuUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicProgressBarUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicScrollBarUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicScrollPaneUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicSeparatorUI.java
(installDefaults): Use UIManager.get* methods instead of
UIManager.getDefaults().get* methods.
* javax/swing/plaf/basic/BasicSliderUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicSpinnerUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicSplitPaneUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicTableHeaderUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicTableUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicTextUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicToolBarSeparatorUI.java
(installDefaults): Use UIManager.get* methods instead of
UIManager.getDefaults().get* methods.
* javax/swing/plaf/basic/BasicToolBarUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicToolTipUI.java
(installDefaults): Use new LookAndFeel install* methods.
* javax/swing/plaf/basic/BasicTreeUI.java
(installDefaults): Use new LookAndFeel install* methods. Use
UIManager.get* methods instead of UIManager.getDefaults().get*
methods.
* javax/swing/plaf/basic/BasicViewportUI.java
(installDefaults): Use new LookAndFeel install* methods.
- [cp-patches] FYI: fixed basic UI's installDefault methods,
Roman Kennke <=