Appending text in Java's JTextArea

后端 未结 3 1962
梦如初夏
梦如初夏 2020-12-21 01:34

I have a problem with my text area.

I use jTextArea1.append(\"cleverly amusing\"); to add the text..

FIRST APPEND:

3条回答
  •  伪装坚强ぢ
    2020-12-21 02:23

    Instead of removeAll, just call setText() with the first line you want and then you can append the additional data if you want.

提交回复
热议问题