diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/view/app/UserInterface.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/esieequest/view/app/UserInterface.java b/src/esieequest/view/app/UserInterface.java index 66a0af1..c44358f 100644 --- a/src/esieequest/view/app/UserInterface.java +++ b/src/esieequest/view/app/UserInterface.java | |||
@@ -54,10 +54,8 @@ abstract class UserInterface implements Viewable, ActionListener { | |||
54 | */ | 54 | */ |
55 | public UserInterface() { | 55 | public UserInterface() { |
56 | this.buildUI(); | 56 | this.buildUI(); |
57 | this.inputField.addActionListener(this); | ||
58 | this.setActionListener(this); | 57 | this.setActionListener(this); |
59 | this.setControlsState(false); | 58 | this.setControlsState(false); |
60 | this.inputField.setEnabled(true); | ||
61 | } | 59 | } |
62 | 60 | ||
63 | /** | 61 | /** |
@@ -299,6 +297,7 @@ abstract class UserInterface implements Viewable, ActionListener { | |||
299 | @Override | 297 | @Override |
300 | public void actionPerformed(final ActionEvent actionEvent) { | 298 | public void actionPerformed(final ActionEvent actionEvent) { |
301 | this.gameEngine.interpret(actionEvent.getActionCommand()); | 299 | this.gameEngine.interpret(actionEvent.getActionCommand()); |
300 | this.clearInputField(); | ||
302 | } | 301 | } |
303 | 302 | ||
304 | @Override | 303 | @Override |