diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 5ede996..2328cb2 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -29,9 +29,9 @@ public class ChatClient extends JFrame implements KeyListener { setContentPane(root); - - - + jScrollPane = new JScrollPane( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); + jScrollPane.setPreferredSize(new Dimension(300, 500)); + root.add(jScrollPane); } private JPanel setupPanel(String header) {