classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Fix for disabled text fields


From: Roman Kennke
Subject: [cp-patches] FYI: Fix for disabled text fields
Date: Thu, 8 Sep 2005 14:10:02 +0200 (CEST)
User-agent: SquirrelMail/1.4.4

Hi,

I added some bits and pieces to the L&F stuff so that disabled text fields
actually look like disabled text fields. Note that the colors that I used
match the JDK1.5. This could lead to a mixed L&F experience until all the
Swing components L&Fs are updated to match the JDK1.5.

2005-09-08  Roman Kennke  <address@hidden>

        * javax/swing/plaf/basic/BasicTextUI.java
        (UpdateHandler.propertyChanged): Update the components colors
        when the state of the 'enabled' property changes.
        (foreground): New field that stores the foreground color.
        (background): New field that stores the background color.
        (inactiveForeground): New field that stores the inactive
        foreground color.
        (inactiveBackground): New field that stores the inactive
        background color.
        (updateComponentColors): New method. Updates the text
        components' colors according to the state of the 'enabled'
        property.
        (installDefaults): Load the defaults for the component colors.
        * javax/swing/plaf/metal/MetalLookAndFeel.java
        (initComponentDefaults): Added defaults for TextField colors
        and border.

/Roman

Attachment: disabled-textfield.diff
Description: Text Data


reply via email to

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