public void finished() {
							isWriting = false;
							fileChooser.rememberPath(fileChooser.getCurrentDirectory().toString());
							fileChooser.rememberFile(filename, null);
							System.out.println(filename + " written");
							win.dispatchEvent(new WindowEvent(win, WindowEvent.WINDOW_CLOSING));
						}