This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Writing to a JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Writing to a JTextArea" Watch "Writing to a JTextArea" New topic

Writing to a JTextArea

john omeara

Joined: Nov 12, 2003
Posts: 15
Hello i am stuck on a simple problem and was wondering if somebody may know the answer. I have created a JTextarea and want to write some statistics to it. These will change however very regularly and i was wondering how to clear the JTextarea and write the new statistics to it as opposed to appending to the previous ones.
Thanks for your time
Joe Ess

Joined: Oct 29, 2001
Posts: 8876


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
subject: Writing to a JTextArea