我正在开发一个用户界面,我有一个JTextPane
在 aJPanel
中,JTextPane
我在其中添加了使用JTextPane.getStyledDocument().insertString()
. 现在我想更新JTextPane
并删除这些话。
单击a 后如何更新单词JButton
?我不希望中的所有字符串都JTextPane
被删除,只是某些字符串。
我正在开发一个用户界面,我有一个JTextPane
在 aJPanel
中,JTextPane
我在其中添加了使用JTextPane.getStyledDocument().insertString()
. 现在我想更新JTextPane
并删除这些话。
单击a 后如何更新单词JButton
?我不希望中的所有字符串都JTextPane
被删除,只是某些字符串。