| | |
| | | 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. |
| | | * |
| | |
| | | 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 |