开发者

Accelerator for JButton

How do set a shortcut, eg. Ctrl+Q, to a 开发者_如何转开发JButton? JMenuItem has setAccelerator() method to set one, but JButton doesn't.


Well, you can do a JMenu with a set og instruction, putting inside them the same ActionPerformed you put in the specified JButton. It's a good trade-off

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜