class NumberListener implements ActionListener{
public void actionPerformed(ActionEvent e){
if (!append) {
tf.setText("")
append=true
}
String s=tf.getText()
s+=e.getActionCommand()
tf.setText(s)
if (!btn[10].isEnabled()){
for(int i=10 i<=14 i++) btn[i].setEnabled(true)
}
}
标签:
actionPerformed
NumberListener
ActionListener
ActionEvent
上传时间:
2013-12-05
上传用户:wys0120