The label for the text field allows for a mnemonic, but it has no function. That is, when I press alt-m etc. there is no effect.
This will just place focus on the text field.
What are you expecting to happen when you use a mnemonic?
Typically you add an ActionListener to a JTextField. The ActionListener would be invoked when the text field has focus and the Enter key is pressed.
I simply would like to give focus to the text field when the mnemonic is pressed.
You mentioned above that this is what should take place, but it is not happening.
I noted that the text label had provision to state a mnemonic, but the JTextField
itself did not mention any mnemonic.