diff options
| author | Jonathan Bauer | 2015-08-05 15:44:26 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-08-05 15:44:26 +0200 |
| commit | 6c18e7ae59af9384a784cb86dffce447a403e453 (patch) | |
| tree | 5f6c18b7b2047a876d9caa5425eef9a7aaa77d6c /dozentenmodul/src/main/java/org | |
| parent | [client] unused imports (diff) | |
| download | tutor-module-6c18e7ae59af9384a784cb86dffce447a403e453.tar.gz tutor-module-6c18e7ae59af9384a784cb86dffce447a403e453.tar.xz tutor-module-6c18e7ae59af9384a784cb86dffce447a403e453.zip | |
[client] pointed to a small bug in wizard
Wizards are centered too early, the page's top left corner appear to be centered and not the actual center of the page.
Diffstat (limited to 'dozentenmodul/src/main/java/org')
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/Wizard.java | 5 |
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) { |
