public ConfigurationsDialogBuilder setOwner(Window owner) {
    if (owner != null) {
      dialog.initOwner(owner);
      dialog.borderPanel.setMaxWidth(owner.getWidth());
      dialog.borderPanel.setMaxHeight(owner.getHeight());
    } else {
      dialog.setWidth(1000);
      dialog.setHeight(700);
    }

    return this;
  }