请高手帮我看看这个计算器程序为什么运行后不能输入数字谢谢了~~
import java.awt.Button;
import java.awt.CheckboxMenuItem;
import java.awt.GridLayout;
import java.awt.Menu;
import java.awt.MenuBar;
import java.awt.MenuItem;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JTextField;
public class Calculator {
GridLayout gl1, gl2, gl3;
Panel p0, p1, p2, p3;
JTextField tf1;
TextField tf2;
Button b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14,
b15, b16, b17, b18, b19, b20, b21, b22, b23, b24, b25, b26;
StringBuffer str;
double x, y;
int z;
static double m;
public Calculator() {
MenuItem m31 = new MenuItem( "帮助主题 ");
MenuItem m32 = new MenuItem( "关于计算器 ");
gl1 = new GridLayout(1, 4, 10, 0);
gl2 = new GridLayout(4, 1, 0, 15);
gl3 = new GridLayout(4, 5, 10, 15);
tf1 = new JTextField(27);
tf2 = new TextField(10);
p0 = new Panel();
p1 = new Panel();
p2 = new Panel();
p3 = new Panel();
str = new StringBuffer();
MenuItem m11 = new MenuItem( "复制 ");
MenuItem m12 = new MenuItem( "粘贴 ");
MenuItem m13 = new MenuItem( "退出 ");
MenuItem m23 = new MenuItem( "数字分组 ");
Menu m1 = new Menu( "编辑 ");