private boolean confirm() {
		if (!checkAndSetUid(uidField.getText(), pageComboBox, dialog))
			return false;
		String s = scriptArea.getText();
		if (s != null && !s.trim().equals("")) {
			if (!checkBraceBalance(s)) {
				JOptionPane.showMessageDialog(dialog, "Unbalanced balances are found.", "Menu text-script pair error",
						JOptionPane.ERROR_MESSAGE);
				return false;
			}
		}
		Object o = modelComboBox.getSelectedItem();
		BasicModel m = (BasicModel) o;
		m.addModelListener(pageComboBox);
		pageComboBox.setModelClass(m.getClass().getName());
		if (o instanceof MDModel) {
			pageComboBox.setModelID(pageComboBox.page.getComponentPool().getIndex(m));
		}
		else if (o instanceof Embeddable) {
			pageComboBox.setModelID(((Embeddable) o).getIndex());
		}
		o = actionComboBox.getSelectedItem();
		if (o instanceof Action)
			pageComboBox.setAction((Action) o);
		pageComboBox.setOptionGroup(optionField.getText());
		if (scriptArea.getText() != null && !scriptArea.getText().trim().equals("")) {
			pageComboBox.putClientProperty("Script", scriptArea.getText());
			pageComboBox.setupScripts(scriptArea.getText());
		}
		else {
			pageComboBox.putClientProperty("Script", null);
		}
		pageComboBox.setToolTipText(toolTipField.getText());
		pageComboBox.setDisabledAtRun(disabledAtRunCheckBox.isSelected());
		pageComboBox.setDisabledAtScript(disabledAtScriptCheckBox.isSelected());
		pageComboBox.page.getSaveReminder().setChanged(true);
		pageComboBox.page.settleComponentSize();
		return true;
	}