Do you mind if I join the dev group and add this class? And perhaps also add a focus listener too?
Thanks,
Sean
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
