JavaSwingComponents: Accelerators, mnemonics etc.


Accelerators, mnemonics etc.

Providers

Component

Name

Type

Notes

JLabel

displayedMnemonic

key code

AbstractButton

mnemonic

key code

modifier

stored in ButtonModel

possibly from action

JTabbedPane

mnemonicAt

(1.4)

key code

modifier

JFileChooser

approveButtonMnemonic

key code

AbstractColorChooserPanel

mnemonic

key code

default panels from UIManager

JMenuItem

accelerator

key stroke

possibly from action

not supported by JMenu

JTextComponent

focusAccelerator

char (upper-cased)

modifier: ALT

Broken accelerators

Ctrl-I vs. TAB (not in 1.4?)

Ctrl-H vs. Backspace

Ctrl-A vs. SelectAll

Ctrl-Shift-O vs. toggle-ComponentOrientation

Ctrl-T/Ctrl-Shift-T vs. (HTML) navigation

Ctrl-X-C-V vs. Cut-Copy-Paste

Motif: Ctrl-F, -B, -N, -P (text navigation), Ctrl-D (text delete)


(C) 2001-2009 Christian Kaufhold (swing@chka.de)