GUI: Clear messagefield after text has been processed

This commit is contained in:
Andrin Fassbind 2022-04-10 16:48:15 +02:00
parent 361037ab9a
commit 60338e4bbb
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ public class ChatWindowController {
return; return;
} }
String messageString = messageField.getText().strip(); String messageString = messageField.getText().strip();
messageField.clear();
Matcher matcher = messagePattern.matcher(messageString); Matcher matcher = messagePattern.matcher(messageString);
if (matcher.find()) { if (matcher.find()) {
String receiver = matcher.group(1); String receiver = matcher.group(1);