Use the setMnemonic(char) method to set a hot key associated with a button in Java Swing, e.g.:

jButton.setMnemonic(’a');