给Swing 菜单栏中添加快捷键 设置为F1或者F系列的?不是ctrl或者Alt

2026年09月21日 09:06
有1个网友回答
网友(1):

setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1,0));