public void start_Gui() { JFrame window = new JFrame(\"Client Program\"); window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE); JPanel panel = new JP
Two things - firstly you should be setting the preferredSize of the scrollpane, but secondly, trying to resize it inside the componentResized handler isn't a very effective technique because the 'resized' events aren't continuous.
check resizing text area in a JFrame