[2603] in java-interest
Re: Widget Event handling Anomalies [was: Events and Text widgets]
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Thu Oct 5 21:45:00 1995
Date: Thu, 5 Oct 1995 16:38:48 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: andruid@SLINKY.CS.NYU.EDU
Cc: java-interest@java.Eng.Sun.COM
Hi Andruid,
> >>>
> > however, when i try to override the boolean int keyDown(Event,int)
> > method, the method never seems to get called.
> >>>
> I have encounted anomalies regarding the delivery of events to
> various widgets. By logging results obtained in handleEvent(Event evt)
> methods, I saw that a Panel widget gets the full complement of the events
> you would expect. Push Buttons only get a "action" event. Labels
> donot seem to get any events. The full complement, which is specified
> in the handleEvent method of Awt.Component, and perhaps the spec, is
> case Event.MOUSE_ENTER:
> case Event.MOUSE_EXIT:
> case Event.MOUSE_MOVE:
> case Event.MOUSE_DOWN:
> case Event.MOUSE_DRAG:
> case Event.MOUSE_UP:
> case Event.KEY_PRESS:
> case Event.KEY_ACTION:
> It seems to me this event filtering is occuring somewhere in the
> Solaris specific peer code. It seems very wrong.
Yes, this is wrong. It will be fixed in a future release.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com