实现ActionListener这个接口
向按钮注册(告诉它你要监听事件)
定义事件处理的方法(实现接口的方法)
implements AcinotListener//实现此接口
button.addActionListener(this);
public void actionPerformed(ActionEvent event){
button.setText(" ");
}
实现ActionListener这个接口
向按钮注册(告诉它你要监听事件)
定义事件处理的方法(实现接口的方法)
implements AcinotListener//实现此接口
button.addActionListener(this);
public void actionPerformed(ActionEvent event){
button.setText(" ");
}