From 843d914032458705e1eba83f16023b0ccbf660f5 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Wed, 7 Feb 2024 20:31:34 +0100 Subject: [PATCH] Scrolled automatisch runter (in receive Message) --- 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 5b967af..dac4280 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -51,6 +51,7 @@ public class ChatClient extends JFrame implements KeyListener { // while (true) { // String message = fromServerReader.readLine(); // outputTextArea.append(message + "\n"); + // outputScrollPane.getVerticalScrollBar().setValue(outputScrollPane.getVerticalScrollBar().getMaximum()); // } // Solang fromServerReader nicht erstellt ist als Kommentar }