Good luck, because this is not something you cannot accomplish in one-two weeks. Big teams of programmers spent months on setting this functionality for products like Microsoft Office or Open Office.
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
And why can't he override paintComponent, setting the color to whatever he wants, using the drawString method to write text, then changing the color when he wants to?
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I had seen that also, James, but it said JEditorPane and JTextPane among others, whereas the OP wants to use JTextPane. I guess it might be supported for JTextPane as well though.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354