Add scroll into text area
After adding JTextArea into JScrollPane here: scroll = new JScrollPane(display); You don’t need to add it again into other container like you do: middlePanel.add(display); Just remove that last line of code and it will work fine. Like this: middlePanel=new JPanel(); middlePanel.setBorder(new TitledBorder(new EtchedBorder(), “Display Area”)); // create the middle panel components display = new JTextArea(16, … Read more