Use the Accelerator property editor to create a keystroke mapping for a JavaBean that has an accelerator
property, such as a menu item. For example, you could use it to map CTRL+S
to the Save menu item.
To display this property editor, choose the accelerator
property in the Inspector. Then, click the ellipsis button in the value field.
Select one of the radio buttons to control WHEN the menu item should activate.
Type the keystroke you wish to map (for example ALT+X, CTRL+P). As you type, the Properties section of the dialog box changes to reflect what you are typing.
In the Properties section you can build the keystroke combination by selecting the keys you want and selecting the key code from the Key Code drop-down list. The keys you select are shown in the Type Any Keystroke Combination text field.