public void saveAs() {
		try {
			String chemin = Tools.showSaveDialog(
					Tools.getLocalizedString(ActionType.SAVE_AS.name()
							+ ".Name")).getAbsolutePath();
			if (!chemin.endsWith(".ks"))
				chemin += ".ks";
			fileName = new File(chemin);
			BufferedWriter bw = new BufferedWriter(new FileWriter(fileName));
			bw.append(program.getMainPanel().getTextField().getText());
			bw.close();
			isChanged = false;
		} catch (FileNotFoundException e) {
			System.err.println(e.getMessage());
		} catch (IOException e) {
			System.err.println(e.getMessage());
		} catch (Exception e) {
			System.err.println(e.getMessage());
		}

	}