posted 25 years ago
Check out the methods in JTextComponent, which JTextArea extends. Use setSelectionStart() and setSelectionEnd() to specify the text you want to change the color of, and then use setSelectionColor() or setSelectedTextColor() to change the color of the background or foreground. Note - I haven't actually done this myself, but that's what it looksl like from a quick browse of the API. Good luck.
"I'm not back." - Bill Harding, Twister