public void OKbuttonActionPerformed() throws KExceptionClass {

    try {

      KMetaUtilsClass.cursorWait((JDialog) dialog);

      KMetaUtilsClass.setProgressBarValue1(25);
      dialog.saveBrowserChanges();

      if (dialogMode == KDialogInterface.CREATE_NEW_MODE) {

        KMetaUtilsClass.setProgressBarValue1(50);
        pushBack();

        KMetaUtilsClass.setProgressBarValue1(75);
        dialog.setupTables(businessObjectOID);

      } else if (dialogMode == KDialogInterface.EDIT_MODE) {

        KMetaUtilsClass.setProgressBarValue1(75);
        update();
      }

    } finally {

      KMetaUtilsClass.setProgressBarValue1(100);
      KMetaUtilsClass.cursorNormal((JDialog) dialog);
    }
  }
  public void initializeDialog(
      int dialogModeParam, long businessObjectOIDParam, Map foreingKeysMapParam)
      throws KExceptionClass {

    // uses
    dialogMode = dialogModeParam;
    businessObjectOID = businessObjectOIDParam;
    buisnessObjectForeingOIDS = foreingKeysMapParam;

    try {

      if (dialogMode == KDialogInterface.CREATE_NEW_MODE) {

        newObject();

      } else if (dialogMode == KDialogInterface.EDIT_MODE) {

        edit();
        dialog.setupTables(businessObjectOID);

      } else
        throw new KExceptionClass(
            " *** could not display Window *** \n " + " Invalid operation mode", null);

    } catch (Exception error) {

      throw new KExceptionClass("Could not initialize dialog ", error);
    }
  }