當前位置:編程學習大全網 - 網站源碼 - java中的setText(s)會覆蓋原來的內容

java中的setText(s)會覆蓋原來的內容

很簡單,用append方法?。

jt.append(s);

參考:

public?void?append(String?str)

Appends?the?given?text?to?the?end?of?the?document.?Does?nothing?if?the?model?is?null?or?the?string?is?null?or?empty.

Parameters:

str?-?the?text?to?insert

See?Also:

insert(java.lang.String,?int)

  • 上一篇:生死狙擊2命中弱點是什麽意思
  • 下一篇:PLC程序如何轉換源代碼
  • copyright 2024編程學習大全網