Rob2687 Posted October 12, 2004 Share Posted October 12, 2004 How do I clear a text area? I've added things to it using TextField.appendText(String) but I can't figure out how to get rid of text. Link to comment Share on other sites More sharing options...
0 NeoSigma Posted October 12, 2004 Share Posted October 12, 2004 (edited) TextField.setText(null); Link to comment Share on other sites More sharing options...
0 Rob2687 Posted October 12, 2004 Author Share Posted October 12, 2004 Thanks alot :) That wasn't list in any of the API documentation I was looking at :s Link to comment Share on other sites More sharing options...
0 ItchyAnus Posted October 12, 2004 Share Posted October 12, 2004 Thanks alot :)That wasn't list in any of the API documentation I was looking at :s 584716455[/snapback] http://java.sun.com/j2se/1.4.2/docs/api/ja...t/TextArea.html Look at the methods inherited from class java.awt.TextComponent. :pinch: Link to comment Share on other sites More sharing options...
Question
Rob2687
How do I clear a text area?
I've added things to it using TextField.appendText(String) but I can't figure out how to get rid of text.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts