CompilerGUI() {
        super("Compiler");//标题
        setLayout(null);//布局
        setBackground(Color.gray);//背景色
        setSize(1240, 700);//
        setVisible(true);//设置可见
        load = new Button("Load File");//创建按钮
        ge_token = new Button("GE Token");
        ge_tree = new Button("GE Tree");
        ge_llvm = new Button("GE LLVM");
        quit = new Button("Exit");
        tarea = new TextArea("");//创建文本框
        tareaout = new TextArea("");
        tarea.setFont(new Font("SansSerif",Font.BOLD,15));
        tareaout.setFont(new Font("SansSerif",Font.BOLD,15));
        add(load);//添加按钮
        add(ge_token);
        add(ge_tree);
        add(ge_llvm);
        add(quit);
        add(tarea);
        add(tareaout);
        tarea.setBounds(30, 50, 440, 600);//设置文本框位置
        tareaout.setBounds(600,50,600,600);
        load.setBounds(500, 60, 70, 30);
        ge_token.setBounds(500, 120, 70, 30);
        ge_tree.setBounds(500, 180, 70, 30);
        ge_llvm.setBounds(500, 240, 70, 30);
        quit.setBounds(500,300,70,30);
        open = new FileDialog(this, "打开", FileDialog.LOAD);//新建对话框
        //sv = new FileDialog(this, "保存", FileDialog.SAVE);

        open.setFilenameFilter(new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name) {
                if(name.endsWith(".ml")) return true;
                return false;
            }
        });
        load.addActionListener(this);//设置按钮点击监听事件
        ge_token.addActionListener(this);
        ge_tree.addActionListener(this);
        ge_llvm.addActionListener(this);
        quit.addActionListener(this);
        addWindowListener(new WindowAdapter() {//关闭事件处理
            public void windowClosing(WindowEvent e) {
                setVisible(false);//设置不可见
                System.exit(0);//程序关闭
            }
        });
    }