Accelerator « Button « Java Swing Q&A





1. Accelerator for JButton    stackoverflow.com

How do set a shortcut, eg. Ctrl+Q, to a JButton? JMenuItem has setAccelerator() method to set one, but JButton doesn't.

2. Accelerator for a JButton?    coderanch.com