How to use Action with an Accelerator without assigning Action to a Button

I have an Action

I have set an Accelerator key to it.

If I assign the Action to a MenuItem or other Button in my GUI all is well

However I want the Accelerator to fire the Action when it isn't assigned to the button

How do I do this, because it doesn't work?

[291 byte] By [simon_orangea] at [2007-11-27 10:16:42]
# 1

Some GUI component has to listen for this keyboard event. Then you could call the actionPerformed manually.

-Puce

Pucea at 2007-7-28 15:47:09 > top of Java-index,Desktop,Core GUI APIs...
# 2

Use Key Bindings to invoke the Action directly:

http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

camickra at 2007-7-28 15:47:09 > top of Java-index,Desktop,Core GUI APIs...