}
private InputPanelDialog createDialog(final PointInputPanel panel) {
final InputPanelDialog dialog = new InputPanelDialog(owner, panel, title);
dialog.setResizable(false);
dialog.pack();
dialog.setOkButtonAsDefault();
dialog.setLocationRelativeTo(UiUtils.getActiveWindow());
bindDialogWithInputPanel(panel, dialog);
dialog.getOKButton().setEnabled(panel.isInputValid());
return dialog;