classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Metal L&F cleanup


From: Roman Kennke
Subject: [cp-patches] FYI: Metal L&F cleanup
Date: Tue, 15 Nov 2005 20:52:56 +0000

I also cleaned up the Metal L&F, replacing all
UIManager.getLookAndFeelDefaults().getXXX() calls with
UIManager.getXXX(). I also removed some redundant init code from
MetalTreeUI() which is now delegated to the superclass, which does
exactly the same thing.

2005-11-15  Roman Kennke  <address@hidden>

        * javax/swing/plaf/metal/MetalBorders.java
        (OptionDialogBorder.paintBorder): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        * javax/swing/plaf/metal/MetalButtonUI.java
        (MetalButtonUI): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
        (installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalLabelUI.java
        (paintDisabledText): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalRadioButtonUI.java
        (installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalScrollBarUI.java
        (createDecreaseButton): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        (createIncreaseButton): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        (paintThumbHorizontal): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        (paintThumbVertical): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        * javax/swing/plaf/metal/MetalSplitPaneUI.java
        (createDefaultDivider): Replaced
        UIManager.getLookAndFeelDefaults().get() with UIManager.get().
        * javax/swing/plaf/metal/MetalToggleButtonUI.java
        (installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalToolTipUI.java
        (MetalToolTipUI): Replaced UIManager.getLookAndFeelDefaults().get()
        with UIManager.get().
        * javax/swing/plaf/metal/MetalTreeUI.java
        Removed all listener fields.
        (installUI): Removed initialization and call super.installUI()
        instead.
        (uninstallUI): Removed initialization and call super.uninstallUI()
        instead.

/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]