我有这段代码适用于带附加功能的 jTextArea。 但是我想使用 jTextPane 但附加不存在。 有人可以帮我一个替代方案吗?
public void ShowText(String mensaje) { jTextArea1.append(mensaje); }