CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Roman Kennke <[EMAIL PROTECTED]> 05/07/22 14:33:08
Modified files: . : ChangeLog java/awt : Component.java Log message: 2005-07-22 Roman Kennke <[EMAIL PROTECTED]> * 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 _______________________________________________ Commit-classpath mailing list Commit-classpath@gnu.org http://lists.gnu.org/mailman/listinfo/commit-classpath