There is no difference. They both have the effect of deleting the old text. From the java TextComponent page: setText
確定! 回上一頁