A JLabel itself doesn't handle mnemonics or shortcuts. 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.
I'm not sure if JLabel can handle
key bindings. If so, you can perhaps use that.