Getting raw text from JTextPane

前端 未结 4 1685
粉色の甜心
粉色の甜心 2020-12-16 05:24

In my application, I use a JTextPane to display some log information. As I want to hightlight some specific lines in this text (for example the error messages),

4条回答
  •  [愿得一人]
    2020-12-16 06:04

    You need to do it yourself unfortunately. Imagine if some of the contents was HTML specific, eg images - the text representation is unclear. Include alt text or not for instance.

提交回复
热议问题