I need help to deactivate the Mnemonic for JButton. Actually I am using 3rd party API, which they set mnemonic as "Alt C". So I want to remove this mnemonic and wants to set nothing (i.e wants to remove the mnemonic) for this compButton.
// Alt + 'C' selects the comp.
compButton.setMnemonic(KeyEvent.VK_C);