开发者

How to write directly to a JTextArea?

开发者 https://www.devze.com 2023-01-14 20:11 出处:网络
I want to write some text into a JTextArea. I think the开发者_运维百科 answer is to extend java.io.Writer, but I\'d like an authoritative answer here; is that the right thing to do?You can just use JT

I want to write some text into a JTextArea. I think the开发者_运维百科 answer is to extend java.io.Writer, but I'd like an authoritative answer here; is that the right thing to do?


You can just use JTextArea.setText(String) and JTextArea.append(String) to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消