classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BasicTextUI fixlet


From: Roman Kennke
Subject: [cp-patches] FYI: BasicTextUI fixlet
Date: Mon, 14 Nov 2005 12:18:31 +0000

In the BasicTextUI.propertyChange() we fetch the new value of the
editable flag from the textcomponent itself. This would not work because
when the property event is fired, the component still has the old value.
This should fix the problem in the TextFieldDemo where changing the
editable flag does not update the textfield colors correctly.

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

        * javax/swing/plaf/basic/BasicTextFieldUI.java
        (propertyChange): Get new value from the PropertyChangeEvent and
        not from the component itself (since when it receives the event,
        the component still has the old state).

/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

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