dialog.setLocationRelativeTo(null);
dialog.setVisible(true);
}
private KongaDialog createDialog() {
KongaDialog dlg = new KongaDialog(appWin.getFrame(), "Refresh Transformations", true) {
@Override
protected void onCancel() {
cancelCurrentJob();
super.onCancel();
}
@Override
protected void onDialogClose() {
cancelCurrentJob();
super.onDialogClose();
}
};
JPanel buttons = dlg.getButtonPanel(KongaDialog.OK_CANCEL, 10);
buttons.setBorder(Empty.border(10, 0, 10, 0));
BorderLayoutBuilder cp = new BorderLayoutBuilder(0, 5);
cp.center(createMainArea()).south(buttons);
cp.withEmptyBorder(10, 10, 10, 10);
cp.asContentPaneFor(dlg);
dlg.setOkButtonAsDefault();
dlg.getOKButton().setEnabled(false);
return dlg;
}