[2585] in java-interest
Widget Event handling Anomalies [was: Events and Text widgets]
daemon@ATHENA.MIT.EDU (Andruid Kerne)
Thu Oct 5 12:38:56 1995
Date: Thu, 5 Oct 95 10:38:48 EDT
From: andruid@SLINKY.CS.NYU.EDU (Andruid Kerne)
To: java-interest@java.sun.com
In-Reply-To: <199510041126.EAA08823@java.sun.com> (owner-java-interest-digest@java.sun.com)
>>>
> 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.
Andruid Kerne
NYU Media Research Lab
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com