setMnemonic() and call a method by pressing the key

It’s worth reading here about Oracle Tutorial – Enabling Keyboard Operation where it is explained in details along with sample. Read more about on Oracle Tutorial – How to Use Key Bindings Some example directly from the above tutorial: Read more here Oracle Tutorial – How to Use Buttons, Check Boxes, and Radio Buttons Sample … Read more