diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/Gui.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/Gui.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/Gui.java b/src/main/java/cuchaz/enigma/gui/Gui.java index 6fc9fcf..5b9a331 100644 --- a/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/src/main/java/cuchaz/enigma/gui/Gui.java | |||
| @@ -13,6 +13,7 @@ package cuchaz.enigma.gui; | |||
| 13 | 13 | ||
| 14 | import com.google.common.collect.Lists; | 14 | import com.google.common.collect.Lists; |
| 15 | import cuchaz.enigma.Constants; | 15 | import cuchaz.enigma.Constants; |
| 16 | import cuchaz.enigma.EnigmaProfile; | ||
| 16 | import cuchaz.enigma.ExceptionIgnorer; | 17 | import cuchaz.enigma.ExceptionIgnorer; |
| 17 | import cuchaz.enigma.analysis.*; | 18 | import cuchaz.enigma.analysis.*; |
| 18 | import cuchaz.enigma.config.Config; | 19 | import cuchaz.enigma.config.Config; |
| @@ -93,7 +94,7 @@ public class Gui { | |||
| 93 | } | 94 | } |
| 94 | } | 95 | } |
| 95 | 96 | ||
| 96 | public Gui() { | 97 | public Gui(EnigmaProfile profile) { |
| 97 | Config.getInstance().lookAndFeel.setGlobalLAF(); | 98 | Config.getInstance().lookAndFeel.setGlobalLAF(); |
| 98 | 99 | ||
| 99 | // init frame | 100 | // init frame |
| @@ -112,7 +113,7 @@ public class Gui { | |||
| 112 | }); | 113 | }); |
| 113 | } | 114 | } |
| 114 | 115 | ||
| 115 | this.controller = new GuiController(this); | 116 | this.controller = new GuiController(this, profile); |
| 116 | 117 | ||
| 117 | // init file choosers | 118 | // init file choosers |
| 118 | this.jarFileChooser = new FileDialog(getFrame(), "Open Jar", FileDialog.LOAD); | 119 | this.jarFileChooser = new FileDialog(getFrame(), "Open Jar", FileDialog.LOAD); |