[kaffe] CVS kaffe (riccardo): draw the focus border according to the focus manager
Kaffe CVS
cvs-commits at kaffe.org
Sun Dec 3 02:31:36 PST 2006
PatchSet 7453
Date: 2006/12/03 10:29:50
Author: riccardo
Branch: HEAD
Tag: (none)
Log:
draw the focus border according to the focus manager
Members:
libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20->1.21
ChangeLog:1.4953->1.4954
Index: kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java
diff -u kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20 kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.21
--- kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20 Sun Nov 19 21:32:12 2006
+++ kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java Sun Dec 3 10:29:50 2006
@@ -2423,7 +2423,7 @@
int w = width - (left + right);
int h = height - (top + bottom);
- if ( this == AWTEvent.keyTgt )
+ if ( hasFocus() )
g.setColor( Defaults.FocusClr);
else
g.setColor( Defaults.BorderClr);
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4953 kaffe/ChangeLog:1.4954
--- kaffe/ChangeLog:1.4953 Tue Nov 28 21:20:32 2006
+++ kaffe/ChangeLog Sun Dec 3 10:30:41 2006
@@ -1,3 +1,9 @@
+2006-12-03 Riccardo Mottola <riccardo at kaffe.org>
+
+ Hint by Guilhem, draw the focus border according to the focus manager
+ and not ketTgt:
+ * libraries/javalib/awt-implementations/kaffe/java/awt/Component.java
+
2006-11-28 Dalibor Topic <robilad at kaffe.org>
* librariec/clib/native/java_lang_VMDouble.c,
More information about the kaffe
mailing list