I Creates a Styled document, and marks some words. Every line is ended with a \n.
To add my text to the styleddocument i use Styleddocument.insertString(this.getLength(), " " + pt.getStr(), this.getStyle("" + pt.getCol()));
The a add this Styled dokument to the JTextPane by MyJTextPane.setStyledDocument(Styleddoc);
There will be colors, but the problem is that it is not coloring all the way out on the right side? and if i mark the text by drag the mouse pointer over and puch the button to select som text it will be selected, but that part of the text on the right side that was not colored is not visible at all?
Maby not to god explanation, but plesa try to help me on this one, this is my 3d try to display text repetly.
posted 14 years ago
A note: this problem only accure on Solaris, in Windows it works fine.