GUI: Clear messagefield after text has been processed
This commit is contained in:
parent
361037ab9a
commit
60338e4bbb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue