You can specify that a label belongs to a component with the setLabelFor method. After that you can use setDisplayedMnemonic or setDisplayedMnemonicIndex to set the mnemonic for the label. This will however only request that the connected component (as specified in setLabelFor) will receive focus / be the currently selected component. It will not trigger anything.