diff options
author | Simon Rettberg | 2015-07-27 18:30:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-27 18:30:23 +0200 |
commit | 5ab6ba699faaa5961f416d96f5e8212e7b5110b9 (patch) | |
tree | bb2951eddfafd7559933aa63e2cf035a7b7d3d83 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java | |
parent | [client] Moar Swing (diff) | |
download | tutor-module-5ab6ba699faaa5961f416d96f5e8212e7b5110b9.tar.gz tutor-module-5ab6ba699faaa5961f416d96f5e8212e7b5110b9.tar.xz tutor-module-5ab6ba699faaa5961f416d96f5e8212e7b5110b9.zip |
dfg
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java index 69800b4c..de6a26bb 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java @@ -39,7 +39,7 @@ public abstract class MainWindow { private final static Logger LOGGER = Logger.getLogger(MainWindow.class); - private static final JFrame mainShell; + private static final JFrame mainShell = new JFrame("bwLehrstuhl"); private static CompositePage currentPage; @@ -84,9 +84,9 @@ public abstract class MainWindow { * Further sets up the global thrift error callback to catch any * connection errors during the communication with the servers. */ - static { + + public static void open() { // init SWT stuff - mainShell = new JFrame("bwLehrstuhl"); mainShell.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // Catch the close button (X) @@ -154,8 +154,8 @@ public abstract class MainWindow { showPage(MainMenuWindow.class); // center the window on the primary monitor + mainShell.setVisible(true); Gui.centerShell(mainShell); - Gui.limitShellSize(mainShell); // here we can check for Session information @@ -234,8 +234,4 @@ public abstract class MainWindow { }); } - public static void open() { - mainShell.setVisible(true); - } - } |