java 快速鍵
btmTest.registerKeyboardAction(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btmTestActionPerformed(evt);
System.out.println("auto");
}
}, KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0),btmTest.WHEN_IN_FOCUSED_WINDOW);
java 關掉該視窗
dispose();
沒有留言:
張貼留言