From 4f3bc9bc43dac5da14d0d6604359deca5e3a3b0c Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 3 May 2014 22:22:53 +0200 Subject: Fix contradictions --- src/esieequest/view/app/UserInterface.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 { */ public UserInterface() { this.buildUI(); - this.inputField.addActionListener(this); this.setActionListener(this); this.setControlsState(false); - this.inputField.setEnabled(true); } /** @@ -299,6 +297,7 @@ abstract class UserInterface implements Viewable, ActionListener { @Override public void actionPerformed(final ActionEvent actionEvent) { this.gameEngine.interpret(actionEvent.getActionCommand()); + this.clearInputField(); } @Override -- cgit v1.2.3