private void queryToSave() {
		if (saveItem.isEnabled() && file != null || file == null
				&& saveAsItem.isEnabled()) {
			if (JOptionPane.showConfirmDialog(null,
					"Data Changed. Want to save?", "Save?",
					JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
				if (file != null)
					saveDesign(file);
				else
					saveDesignToNewFile();
			}
		}
	}