I know how to get the data from my textfield and display it to my textarea, but I want to know how i can keep appending data to my textarea each time it is typed into my textfield and the jbutton is pushed. I am using netbeans 6.9
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is an append(String str) function on the JTextArea class that probably does what you need.
So you probably need something like:
Edited based on comment below since I had meant to say it was JTextArea#append() and I added an example action performed method.