Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Clearing a JTextArea
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
S_Grimm




PostPosted: Fri Jan 16, 2009 12:47 pm   Post subject: Clearing a JTextArea

Without putting a new JTextArea over the old one, is there any way to clear the JTextArea?
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Fri Jan 16, 2009 1:10 pm   Post subject: RE:Clearing a JTextArea

JTextArea extends JTextComponent, which has the method setText ( String ). You can find this all easily through the JavaDocs: http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextArea.html
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: