setDirtyFlag(false);
	private void saveAsState() {		JFileChooser fc = new JFileChooser();		fc.setAcceptAllFileFilterUsed(false);		fc.setFileFilter(galleryFileFilter);		int returnVal = fc.showSaveDialog(this);		if (returnVal == JFileChooser.APPROVE_OPTION) {			String name = fc.getSelectedFile().getPath();			if (!name.endsWith(FILE_TYPE)) {				name += FILE_TYPE;			}			// Remember the file			lastOpenedFile = new File(name);			resetUIState();			saveState(lastOpenedFile);			saveMRUItem(lastOpenedFile);			// We've been saved, we are now clean.			setDirtyFlag(false);		}	}