mnemonic

Sets the keyboard mnemonic to the key identified by keyCode, a KeyEvent.VK_* value. KeyEvent.VK_UNDEFINED declares 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.

Return

this modifier with the mnemonic declared on it.

Parameters

keyCode

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

See also


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

Return

this modifier with the mnemonic declared on it.

Parameters

mnemonic

the character to use as the mnemonic.

See also