Clear « JTextArea « Java Swing Q&A





1. Clear TextArea    coderanch.com

2. clear JTextArea    coderanch.com

3. clear JTextArea    coderanch.com

4. clearing a text area    coderanch.com

5. Clearing JTextArea in EDT    coderanch.com

Hi, Probably a pretty trivial issue but my last Swing project is some time ago... I have a test applcation using a JTextArea for the test output. I want to clear the area each time whena new test is carried out by pressing the Test button. This Test button has an ActonListener and calls the test code and shows the result ...

6. JTextArea - how to clear it?    forums.oracle.com

Hi! Could you help me, please?! I've put some text to a JTextArea. Is it possible to remove it and get an empty box? Here is my textArea: textArea = new JTextArea(1, 30); textArea.setBorder(new TitledBorder(new EtchedBorder(), "Test")); textArea.setFont(displayFont); textArea.setBackground(Color.white); textArea.setEditable(false); JScrollPane scrollPane = new JScrollPane(textArea); ....then I put some text......... Here is what I've tried and what did not function: Textarea.removeAll(); ...

7. Using JTextArea - How do I clear it?    forums.oracle.com