From 60338e4bbb5d438cf4e15857d1a4fa6516bd148e Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Sun, 10 Apr 2022 16:48:15 +0200 Subject: [PATCH] GUI: Clear messagefield after text has been processed --- .../java/ch/zhaw/pm2/multichat/client/ChatWindowController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java index b48a249..e9a704e 100644 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java +++ b/client/src/main/java/ch/zhaw/pm2/multichat/client/ChatWindowController.java @@ -86,6 +86,7 @@ public class ChatWindowController { return; } String messageString = messageField.getText().strip(); + messageField.clear(); Matcher matcher = messagePattern.matcher(messageString); if (matcher.find()) { String receiver = matcher.group(1);