By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,190 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,190 IT Pros & Developers. It's quick & easy.

How to get the contents in JTextArea???

P: 5
Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Mar 31 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 10K+
P: 11,448
Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Note that the JTextArea inherits read() and write() methods from the JTextComponent
class. Check the relevant API docs.

kind regards,

Jos
Mar 31 '07 #2

10K+
P: 13,264
Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Checking the api will show you how to use getText, setText and append methods
Apr 2 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.