Put JTextArea within a JScrollPane to allow a user to properly scroll through the contents of a JTextArea. JTextArea textArea = new JTextArea();JScrollPane scrollPane = new JScrollPane(textArea);content.add(scrollPane);