[kaffe] CVS kaffe (jserv): clickToFocus fix to MouseEvt & boundary check for PaintEvt

jserv at linux2.cc.ntu.edu.tw jserv at linux2.cc.ntu.edu.tw
Thu Jul 15 07:27:01 PDT 2004


On Thu, Jul 15, 2004 at 03:16:53PM +0200, Fabien Renaud wrote:
> Hi !
>=20
> Thanks for the patch but I still have the same problems. I=B4ll try wit=
h=20
> everything up-to-date but I don=B4t think that will change something.

Hi Fabien,

  This patch doesn't tend to solve the problem you indicated, and
it would show up in my next patches, I think.=20

> BTW ,
> With WidgetsDemo, I still have the problem with the window creation=20
> (after some windows creation/destruction, I cannot create no more=20
> windows  unless I resize the window).

Following the log Qt AWT generated, we can find out:

QtAWT: [evt.cc:493]
QtAWT: processing Move Event SrcIdx=3D-1

QtAWT: [evt.cc:502]
QtAWT: processing Resize Event SrcIdx=3D-1

This resulted in ArrayIndexOutOfBoundsException.

java.lang.ArrayIndexOutOfBoundsException
   at java.awt.ComponentEvt.getEvent (ComponentEvt.java:98)
   at java.awt.Toolkit.evtGetNextEvent (Toolkit.java)
   at java.awt.EventQueue.getNextEvent (EventQueue.java:174)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:34)

So that, I am hacking evt.cc and java.awt.event package. After talking
to Twiun, he gave me some useful hints, and it worked for me. But I am
not sure if my changes are correct to handle events.

> With the same prog, the transvirtual logo appears shifted down.
> Unfornately, I cannot take screenshots :(

This is a known issue. Thanks for noticing me for such a bug.

cheers,
Jim Huang



More information about the kaffe mailing list