[Solved] Default text in JTextArea
It is setting default text. I’ve done it as bellow. public class BisectionIterations extends JFrame implements ActionListener { private JTextArea textArea = new JTextArea(“This text should display”); private JScrollPane scrollPane = new JScrollPane(textArea); private JButton closeBtn = new JButton(“Close”); //Array Double[] iterationBi = new Double[1000]; public BisectionIterations(Double[] iter) { this.iterationBi = iter; setLayout(new BorderLayout()); setSize(500, … Read more