| | |
| | | import javax.swing.JPanel; |
| | | import javax.swing.text.JTextComponent; |
| | | |
| | | import org.opends.quicksetup.event.MinimumSizeComponentListener; |
| | | import org.opends.quicksetup.i18n.ResourceProvider; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.quicksetup.util.WebBrowserException; |
| | |
| | | public void packAndShow() |
| | | { |
| | | pack(); |
| | | int minWidth = (int) getPreferredSize().getWidth(); |
| | | int minHeight = (int) getPreferredSize().getHeight(); |
| | | addComponentListener(new MinimumSizeComponentListener(this, |
| | | minWidth, minHeight)); |
| | | Utils.centerOnComponent(this, parent); |
| | | setVisible(true); |
| | | } |
| | |
| | | gbc.gridwidth = GridBagConstraints.RELATIVE; |
| | | Insets pInsets = UIFactory.getCurrentStepPanelInsets(); |
| | | gbc.insets.left = 0; |
| | | gbc.fill = GridBagConstraints.BOTH; |
| | | String msg = getMsg("error-browser-display-msg", new String[] |
| | | { url }); |
| | | JTextComponent tf = |