S. Meslin-Weber wrote:
Hi folks,

Hi Stephane,

I gave Kaffe CVS[1] a quick test with Odonata[2] and can report that it
mostly works[3] ;-)

Thanks for the good news! I'm also glad that the kaffe build worked for you ;)


Two issues cropped up during my test runs:

1) Colours seem off when compared to a similar run on Sun's SDKs (see
screenshots)

Has that worked with GNU Classpath's AWT before?

2) I get a NullPointerException when dispatching mouse events from my
'native' layer (stack trace attached)

I've attached a patch that lets postEvent ignore unhandled Java 1.0 events if the handling component is a top-level component. Could you try it out?


Otherwise, it's looking pretty good :) Well done guys!

thanks, odonata looks very nice, too ;)

cheers,
dalibor topic
Index: libraries/javalib/java/awt/Component.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/awt/Component.java,v
retrieving revision 1.37
diff -u -r1.37 Component.java
--- libraries/javalib/java/awt/Component.java	12 Sep 2004 16:53:07 -0000	1.37
+++ libraries/javalib/java/awt/Component.java	15 Sep 2004 20:45:21 -0000
@@ -2270,10 +2270,10 @@
   {
     boolean handled = handleEvent (e);
 
-    if (!handled)
-      // FIXME: need to translate event coordinates to parent's
-      // coordinate space.
-      handled = getParent ().postEvent (e);
+    if (!handled && getParent() != null) 
+	// FIXME: need to translate event coordinates to parent's
+	// coordinate space.
+	handled = getParent ().postEvent (e);
 
     return handled;
   }
_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to