mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
28.32.2016 ff7ed17007414fbb17984b2daf5f380606ca8496
opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/QuickSetupDialog.java
@@ -38,6 +38,8 @@
import org.opends.quicksetup.WizardStep;
import org.opends.quicksetup.event.ButtonActionListener;
import org.opends.quicksetup.event.ButtonEvent;
import org.opends.quicksetup.event.MinimumSizeComponentListener;
/**
 * This class represents the dialog used by quicksetup applications.
 *
@@ -94,6 +96,20 @@
    Utilities.setFrameIcon(frame);
  }
  /** Packs and displays this dialog. */
  public void packAndShow()
  {
    frame.pack();
    int minWidth = (int) frame.getPreferredSize().getWidth();
    int minHeight = (int) frame.getPreferredSize().getHeight();
    Utilities.centerOnScreen(frame);
    setFocusOnButton(application.getInitialFocusButtonName());
    frame.addComponentListener(new MinimumSizeComponentListener(frame,
        minWidth, minHeight));
    frame.setVisible(true);
  }
  /**
   * This method is called when we detected that there is something installed
   * we inform of this to the user and the user wants to proceed with the