From 92244c512b47796f38eab6fed55491b818c0a1a6 Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Sat, 3 Feb 2024 21:14:19 +0100 Subject: [PATCH] Prevent writing in output area --- src/main/java/ChatClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 6380f66..8f0c1f0 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -24,6 +24,7 @@ public class ChatClient extends JFrame { private void initGui() { outputTextArea = new JTextArea(); + outputTextArea.setEditable(false); outputTextArea.setBorder(BorderFactory.createTitledBorder("Chat")); inputTextField = new JTextField();