[2483] in java-interest
Re: Events and Text widgets
daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Tue Oct 3 04:14:03 1995
Date: Tue, 3 Oct 1995 01:05:42 -0500 (CDT)
From: Pat Niemeyer <pat@icon-stl.net>
To: Steve Wong - aka the Ninja <Steven.Wong@Comp.VUW.AC.NZ>
cc: java-interest@java.sun.com
In-Reply-To: <199510022150.KAA17949@bats.comp.vuw.ac.nz>
On Tue, 3 Oct 1995, Steve Wong - aka the Ninja wrote:
> i'm having some problems trying to wrap my mind around how the
> JDK api handles events. i'm using the JDK and X11R6, if that helps.
>
> I want to be able to make a new TextField that allows me to configure
> what happens when keys are pushed. Preferably after I take the
> appropriate steps, i'd like to be able to pass a message back to the
> parent Applet of the TextField.
>
> however, when i try to override the boolean int keyDown(Event,int)
> method, the method never seems to get called.
Not all component can catch all events right now. This situation may
improve in the future. For now it looks like the only way to do it would
be to create your own text input class.
There are a couple of them floating around, however I'm not sure what's
been updated to the prebeta1 API.
Pat
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com