mnemonic

Sets the label's keyboard mnemonic to the key identified by keyCode, a KeyEvent.VK_* value. KeyEvent.VK_UNDEFINED sets no mnemonic.

This is the form to use for a key that types no character - a function key, an arrow - and the form a character mnemonic resolves to.

Parameters

keyCode

the KeyEvent.VK_* code of the key that moves focus to the label's target.

See also


Sets the label's keyboard mnemonic to the key that types mnemonic, resolved with KeyEvent.getExtendedKeyCodeForChar - so 's' and 'S' both set the S key. A character that appears on no known keyboard layout resolves to KeyEvent.VK_UNDEFINED, setting no mnemonic.

Parameters

mnemonic

the character to use as the mnemonic.

See also


Sets the button's keyboard mnemonic to the key identified by keyCode, a KeyEvent.VK_* value. KeyEvent.VK_UNDEFINED sets no mnemonic.

This is the form to use for a key that types no character - a function key, an arrow - and the form a character mnemonic resolves to.

Parameters

keyCode

the KeyEvent.VK_* code of the key that activates the button.

See also


Sets the button's keyboard mnemonic to the key that types mnemonic, resolved with KeyEvent.getExtendedKeyCodeForChar - so 's' and 'S' both set the S key. A character that appears on no known keyboard layout resolves to KeyEvent.VK_UNDEFINED, setting no mnemonic.

Parameters

mnemonic

the character to use as the mnemonic.

See also