diff options
author | Simon Rettberg | 2015-07-28 18:46:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-28 18:46:59 +0200 |
commit | cc93d6c71f1b51a122fae70fcde869c71bb07f1e (patch) | |
tree | 1eea8eee3b623d9176e4b2285269c52c2c12b590 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java | |
parent | [client] warning-free (diff) | |
download | tutor-module-cc93d6c71f1b51a122fae70fcde869c71bb07f1e.tar.gz tutor-module-cc93d6c71f1b51a122fae70fcde869c71bb07f1e.tar.xz tutor-module-cc93d6c71f1b51a122fae70fcde869c71bb07f1e.zip |
[client] Fix bwLehrstuhl
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java index 1494967f..0654e448 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java @@ -2,6 +2,7 @@ package org.openslx.dozmod.gui.window.layout; import java.awt.Color; import java.awt.Component; +import java.awt.Frame; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; @@ -77,10 +78,8 @@ public abstract class LoginWindowLayout extends JDialog { * The shell it should be added to */ @SuppressWarnings("serial") - public LoginWindowLayout() { - super(); - setTitle(TITLE); - setLocationRelativeTo(null); + public LoginWindowLayout(Frame modalParent) { + super(modalParent, TITLE, ModalityType.APPLICATION_MODAL); setResizable(false); setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); GridBagLayout bag = new GridBagLayout(); @@ -184,6 +183,7 @@ public abstract class LoginWindowLayout extends JDialog { bag.setConstraints(loginFormPanel, con); add(loginFormPanel); pack(); + validate(); } /** |