Color lines in JTextPane
Hi,
I'd like to set the background color of a JTextPane on specific line numbers.
For example, data displayed in my text pane looks like this
1. Some data here
2. Other data here
3. ...
Is there a way to set the background color for line 1, which fills the entire width of the text pane, and not just the background of the text in line 1?

