• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clear TextArea

 
wasif akbar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I append a string to a text area on my gui. I wanted to create a button, when clicked it clears the text. Not sure what method to use or how to go about doing that.
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about JTextArea.setText("");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!