public void close(){
		if(!saved) {
			int choice = JOptionPane.showConfirmDialog(this, 
					"Modifications have been done. Do you want to save ?",
					"Last Warning", 
					JOptionPane.INFORMATION_MESSAGE, 
					JOptionPane.YES_NO_CANCEL_OPTION);
			if (choice == 0) { //YES
				JFileChooser FCdialog = new JFileChooser();
				int opt = FCdialog.showSaveDialog(this); 
				if (opt == JFileChooser.APPROVE_OPTION) {
					try {
						BufferedWriter out = new BufferedWriter(new FileWriter(FCdialog.getSelectedFile().getPath()));
						out.write(this.textPane.getText()); 
						out.close(); 
					} catch (Exception e) {
						System.out.println(e.getMessage());
					}
					this.dispose();
				}
			} else if (choice == 1) {
				this.dispose();
			}
		} else
			this.dispose();
	}