cancelaction.java
来自「简单的硬盘配置界面」· Java 代码 · 共 41 行
JAVA
41 行
package informationsystem.gui;
import java.awt.event.*;
import informationsystem.gui.MainWindow;
public class CancelAction
implements ActionListener {
public CancelAction() {
try {
jbInit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
private MainWindow window;
public CancelAction(MainWindow window) {
this.window = window;
}
/**
* Invoked when an action occurs.
*
* @param e ActionEvent
* @todo Implement this java.awt.event.ActionListener method
*/
public void actionPerformed(ActionEvent e) {
this.window.jTextField1.setText("");
this.window.jTextField2.setText("");
this.window.jTextField3.setText("");
this.window.jTextField4.setText("");
this.window.jTextField5.setText("");
this.window.jTextPane1.setText("");
}
private void jbInit() throws Exception {
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?