【发布时间】:2010-09-26 02:14:43
【问题描述】:
我试图让 JEditorPane 突出显示显示行的整个宽度。我尝试过的所有示例仅突出显示文本内容。例如,如果我有这样的内容:
---------------------------------
|Here is some text |
|some more text |
---------------------------------
在由上面的框表示的 JEditorPane 中,然后突出显示第一行仅突出显示“这是一些文本”(在下面的 [ 和 ] 之间表示)。
---------------------------------
[Here is some text] |
|some more text |
---------------------------------
我希望它突出显示 JEditorPane 的整个宽度,如下所示:
---------------------------------
[Here is some text ]
|some more text |
---------------------------------
有没有办法做到这一点?
【问题讨论】:
标签: java line highlighting jeditorpane