Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JEditorPane当我有要突出显示的字符串列表时,是否可以突出显示中的某些文本部分?无法使用 HTML 标签(文本将包含一些标签)。EditorKit有必要创建cuttom吗?
JEditorPane
EditorKit
谢谢
getHighlighter().addHighlight(start, end, new DefaultHighlighter.DefaultHighlightPainter(Color.red));