hi im working on a project and cant figure out how to add text to a JTextArea when someone clicks a button in swing. Ik its kinda a stupid question but i really need help. Thx
2 Replies - 222 Views - Last Post: 30 April 2012 - 06:01 PM
#1
How do i add text to a JTextArea if someone clicks a button?
Posted 30 April 2012 - 05:55 PM
Replies To: How do i add text to a JTextArea if someone clicks a button?
#2
Re: How do i add text to a JTextArea if someone clicks a button?
Posted 30 April 2012 - 05:58 PM
In your buttons action event, use the text area's append method
textArea.append("some text");
#3
Re: How do i add text to a JTextArea if someone clicks a button?
Posted 30 April 2012 - 06:01 PM
It worked! thx very much!
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|