• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TextArea update

 
Sarada Bhasker
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet in which I have added an actionListener which
updates s TextArea field when a button is clicked. But when I run the applet the TextArea is not getting updated. Can someone help me out?
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sarada,
Here is one way to do what you are describing:

Whenever the user presses the button, the words "Button Pressed " get added to the TextArea.
Is this how your code looks? If not, what is different?
Stephanie
 
Sarada Bhasker
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.When I initailised the textArea with a value while creating it, it worked fine. I don't know why.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic