@Override
	public void actionPerformed(ActionEvent a) {
		
		if (a.getSource() == this.close) {
			close();
		}
		else if (a.getSource() == this.openFile) {
			open();
		}
		else if (a.getSource() == this.saveFile) {
			save();
		}
		else if (a.getSource() == this.newFile) {
			newfile();
		}
		else if (a.getSource() == this.update) {
			if (this.type != null)
				pp();//this._compiler.compile_text(this.textPane.getText(), this.type);
		}
		else if (a.getSource() == this.graph){
			if (this.type != null)
				gen();
		}
	}