Java – how to add text to textarea instead of replacing it

OK, so I have a little new Java. I'm curious about how to add text to a textarea instead of replacing it I Know. Settext (string), but in addition, it is a bit missing

Solution

Like this:

textArea.append(text + newline);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>