diff options
author | Pacien TRAN-GIRARD | 2014-05-03 22:22:53 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-03 22:22:53 +0200 |
commit | 4f3bc9bc43dac5da14d0d6604359deca5e3a3b0c (patch) | |
tree | ae48734808c534839b0be3f700fd8717964fb7ce | |
parent | 51b8172ae18b9e354e3a97fd26f61b46287e1dcf (diff) | |
download | esieequest-4f3bc9bc43dac5da14d0d6604359deca5e3a3b0c.tar.gz |
Fix contradictions
-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 |