diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/Gui.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/Gui.java b/src/main/java/cuchaz/enigma/gui/Gui.java index a6e20a2..3593e4f 100644 --- a/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/src/main/java/cuchaz/enigma/gui/Gui.java | |||
| @@ -91,13 +91,13 @@ public class Gui { | |||
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | public Gui() { | 93 | public Gui() { |
| 94 | Config.getInstance().lookAndFeel.setGlobalLAF(); | ||
| 95 | |||
| 94 | // init frame | 96 | // init frame |
| 95 | this.frame = new JFrame(Constants.NAME); | 97 | this.frame = new JFrame(Constants.NAME); |
| 96 | final Container pane = this.frame.getContentPane(); | 98 | final Container pane = this.frame.getContentPane(); |
| 97 | pane.setLayout(new BorderLayout()); | 99 | pane.setLayout(new BorderLayout()); |
| 98 | 100 | ||
| 99 | Config.getInstance().lookAndFeel.setGlobalLAF(); | ||
| 100 | |||
| 101 | if (Boolean.parseBoolean(System.getProperty("enigma.catchExceptions", "true"))) { | 101 | if (Boolean.parseBoolean(System.getProperty("enigma.catchExceptions", "true"))) { |
| 102 | // install a global exception handler to the event thread | 102 | // install a global exception handler to the event thread |
| 103 | CrashDialog.init(this.frame); | 103 | CrashDialog.init(this.frame); |