posted 19 years ago
Hi Benjamin!
By accelerator keys, do you mean you want to be able to type ALT+"some other key" to trigger an event? An easy way to set this up is to "cheat" a little and use invisible components. For instance, create a JButton, don't add it to a container, and set its Mnemonic to whatever shortcut key you want. Create an ActionPerformed to handle the event when the shortcut key is pressed, and viola.
Hope this helps!
Life is good on the Ponderosa,<br />but mind where you step.