btnOk.addActionListener(new myEvent());//按钮事件class myEvent implements ActionListener{@Overridepublic void actionPerformed(ActionEvent e) {txtShow.setText(txtName.getText() + ",您好!");请问按钮怎么去调用actionPerformed这个方法?ActionEvent e?e又代表什么?
添加回答
举报
0/150
提交
取消