【发布时间】:2013-10-06 10:13:51
【问题描述】:
我需要更改特定单词或行的样式(即字体、颜色和其他属性)。
我用 JTextPane 试过这个:
textPane.getStyledDocument().setCharacterAttributes(start,length,myTextStyle,false);
有没有办法用 JEditorPane 做同样的事情。
如何在 JEditorPane 中格式化单词。
【问题讨论】:
标签: java swing jeditorpane