TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:236] Java event model 1.0



Bob Tanner <tanner@real-time.com> writes:

> Is there a way in the java's 1.0 event model in an applet to capture the enter
> key being pressed when just the applet has focus?
> 
> I can do this with implements KeyListener, but that is 1.1 model.

Why so interested in 1.0?
Here's a copy of the 1.0.2 documentation.  That should help.
http://java.sun.com/products/jdk/1.0.2/api/

Try overriding keyDown or keyUp on java.awt.Component.

-- 
Jon Schewe 
http://eggplant.mtu.net/~jpschewe
schewe@tcfreenet.org