不能实现连续计算
连续按同一个数字按键多次会出现乱码数字
以下是代码
import java.awt.;
import java.awt.event.;
//继承 实现
public class JSQ extends WindowAdapter implements MouseListener{//继承了窗体开关以及鼠标事件
//声明一个窗体,通过new调用构造函数并赋值
Frame fr = new Frame("Super Calculator-2017001718");
//声明2个GridLayout布局管理器
GridLayout gl1 = new GridLayout(2,1);
GridLayout gl2 = new GridLayout(4,4,3,3);
//声明一个单行文本框tf
TextField tf = new TextField("0");
//声明一个容器p1
Panel pl = new Panel();
//声明10个数值按钮和声明6个功能按钮
Button b7 = new Button("7");
Button b8 = new Button("8");
Button b9 = new Button("9");
Button bchu = new Button("÷");
Button b4 = new Button("4");
Button b5 = new Button("5");
Button b6 = new Button("6");
Button bcheng = new Button("×");
Button b1 = new Button("1");
Button b2 = new Button("2");
Button b3 = new Button("3");
Button bjian = new Button("-");
Button b清屏 = new Button("清屏");
Button b0 = new Button("0");
Button bdengyu = new Button("=");
Button bjia = new Button("+");
{
fr.setForeground(Color.black);
b7.setBackground(new Color(169,169,169));
b7.setFont(new Font("华文新魏",Font.BOLD,30));
b8.setBackground(new Color(169,169,169));
b8.setFont(new Font("华文新魏",Font.BOLD,30));
b9.setBackground(new Color(169,169,169));
b9.setFont(new Font("华文新魏",Font.BOLD,30));
bchu.setBackground(new Color(211,211,211));
bchu.setFont(new Font("华文新魏",Font.BOLD,30));
b4.setBackground(new Color(169,169,169)