public void open() {
		JFileChooser FCdialog = new JFileChooser();
		int opt = FCdialog.showOpenDialog(this);
		
		if(opt == JFileChooser.APPROVE_OPTION){
			this.textPane.setText("");
			try {
				this.console.setText("<html> Opening file: "+ FCdialog.getSelectedFile().getName());
				Scanner scan = new Scanner(new FileReader(FCdialog.getSelectedFile().getPath()));
				while (scan.hasNext()) {
					//this.textPane.setFont(new Font(type, opt, opt));
					this.textArea.insertString(textArea.getLength(), scan.nextLine() + "\n", defaultStyle);
				}
				scan.close();
			} catch (Exception e) { 
				System.out.println(e.getMessage());
			}
			String[] name = FCdialog.getSelectedFile().getName().split("\\.");
			this.type = name[name.length-1];
			this.saved = true;
			this._compiler.compile_text(this.textPane.getText(), this.type);
			this.console.setText(this.console.getText() + "</html>");
			/*if (this.type != null)
				pp();*/
		}
	}