This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to save contents of an TextArea  RSS feed

 
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!