File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes clearing a text area Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "clearing a text area" Watch "clearing a text area" New topic
Author

clearing a text area

Victoria Preston
Ranch Hand

Joined: Feb 03, 2006
Posts: 106
How do you clear the contents of a text area?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Set its value to a zero-length string:
Victoria Preston
Ranch Hand

Joined: Feb 03, 2006
Posts: 106
thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: clearing a text area
 
Similar Threads
textarea and conditional READONLY
XHTML based editor on a servlet based application?
My unbelievable stupid mistake in Part III
Scea Part III
how to replace a value in I E from a pop up window without refreshing the parent page