summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java
index 86edcecb..ed6e6380 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java
@@ -89,6 +89,10 @@ public class Wizard extends JDialog {
//
setPreferredSize(new Dimension(550, 420));
setResizable(false);
+ // TODO this seems broken: it only center the (still) empty frame
+ // later when the page is shown, it won't be centered correctly.
+ // Centered is the top left corner of this frame, not the actual
+ // center of the pages!
MainWindow.centerShell(this);
// Window events
addWindowListener(new WindowAdapter() {
@@ -163,6 +167,7 @@ public class Wizard extends JDialog {
updateHeader(page);
updateButtons(page);
validate();
+
}
void updateHeader(WizardPage page) {