>> I've got a Swing window, and I want something to happen when I
>>press F2. The closest I can find is getting something to happen when a
[quoted text clipped - 4 lines]
> Use WHEN_IN_FOCUSED_WINDOW. If that doesn't mean anything to you you
> need to read the docs more.
...i need to read the docs...

Signature
Nick H
Nick H - 06 Feb 2004 12:48 GMT
>>> I've got a Swing window, and I want something to happen when I
>>> press F2. The closest I can find is getting something to happen when a
[quoted text clipped - 3 lines]
>
> ...i need to read the docs...
I looked it up, and the registerKeyboardAction that uses it is now
obsolete. I'll use getActionMap() and getInputMap() instead... maybe you
should read the docs more!

Signature
Nick H
Thomas Fritsch - 06 Feb 2004 13:24 GMT
>>> I've got a Swing window, and I want something to happen when I
>>> press F2. The closest I can find is getting something to happen when a
[quoted text clipped - 7 lines]
>
> ...i need to read the docs...
Start reading the docs for the methods JComponent#registerKeyboardAction,
continue for the docs of related methods/classes as needed, and put the
bricks together...
______________________________________________________
Thomas <dot> Fritsch <at> ops <dot> de