• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to save contents of an TextArea

 
Chandhrasekar Saravanan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to save the contents of an TextArea into an Desktop. i am using FileWriter
to write the file, but i dont know how to get the contents of an TextArea so that i could write it using the FileWriter.
 
Satheesh Thekku Veethil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Chandra
I believe all components have an access method called getText to access the textual information from the component.
So you can user getText() to obtain the text from the text area and then write it into a file.
Sat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!