import java.awt.*;
import java.awt.event.*;public class TestField2{
public static void main(String[] args){
new MyFrame().launch();
}
}class MyFrame extends Frame{
public void launch(){
TextField t1 = new TextField(10);
TextField t2 = new TextField(10);
TextField t3 = new TextField(20);
Label l = new Label("+");
Button b = new Button("=");
b.addActionListener(new Monitor(t1, t2, t3));
setLayout(new FlowLayout());
add(t1);
add(l);
add(t2);
add(b);
add(t3);
pack();
setVisible(true);

}
}class Monitor implements ActionListener{
TextField t1, t2, t3;
Monitor(TextField t1, TextField t2, TextField t3){
this.t1 = t1;
this.t2 = t2;
this.t3 = t3;
}
public void actionPerformed(ActionEvent e){
int t11 = Integer.parseInt(t1.getText());
int t22 = Integer.parseInt(t1.getText());
int i = t11 + t22;
t3.setText( i +"" );
}
}只要第一个数输入0, 第二个数无论是什么, 结果都是0;
如果第二个数是0, 结果就是第一个数的两倍...  
其他数相加的情况没错....
请问到底怎么回事呢??