private boolean validateFileName(File file) {
		if (file == null)
			return false;
		switch (FileUtilities.checkFileName(file)) {
		case FileUtilities.DIRECTORY_ERROR:
			JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(this), "Directory error: " + file, "Path error", JOptionPane.ERROR_MESSAGE);
			return false;
		case FileUtilities.ILLEGAL_CHARACTER:
			JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(this), "A file name cannot contain any of the following characters:\n\\/:*?\"<>|", "Path error", JOptionPane.ERROR_MESSAGE);
			return false;
		}
		return true;
	}