commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean W. Ferguson" <>
Subject Re: [JELLY] Key listeners
Date Wed, 23 Jul 2003 17:09:18 GMT
Well, it appears a keylistener class would be the best solution, 
especially if I want scripts associated with them.  :)

Do you mind if I join the dev group and add this class?  And perhaps 
also add a focus listener too?



Paul Libbrecht wrote:

> Sean Ferguson wrote:
>> Is there a way to add a key listener to a swing textField?  An action 
>> only gets called if an Enter is pressed, but I also want to catch 
>> other keypresses.
> Sean,
> I don't think KeyListeners are a good thing to use as they are very 
> low-level (hence may turn-out slow in Jelly I would fear). But an 
> action can be attached to any keypress for any Swing component. You 
> just have to fiddle with the actionMap and keymap (with names in the 
> middle).
> Paul
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message