commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] classpath ./ChangeLog java/awt/Component.java


From: Roman Kennke
Subject: [commit-cp] classpath ./ChangeLog java/awt/Component.java
Date: Fri, 22 Jul 2005 10:33:08 -0400

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Roman Kennke <address@hidden>   05/07/22 14:33:08

Modified files:
        .              : ChangeLog 
        java/awt       : Component.java 

Log message:
        2005-07-22  Roman Kennke  <address@hidden>
        
        * java/awt/Component.java
        (setForeground): Fire PropertyChangeEvent after the foreground
        has actually changed, instead of before.
        (setBackground): Fire PropertyChangeEvent after the foreground
        has actually changed, instead of before. Avoid one comparison
        at the beginning of method.
        (getBackground): If background is null and parent is null, return
        null, instead of SystemColor.window. This is what it's supposed
        to do.
        (getFont): Avoid NPE by creating a local reference. Return
        static final DEFAULT_FONT instead of creating a new font every time
        we and our parents have no font set.
        (setFont): Made check for font equality more precise.
        (paramString): Added parent in paramString.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.4192&tr2=1.4193&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/awt/Component.java.diff?tr1=1.62&tr2=1.63&r1=text&r2=text





reply via email to

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