posted 23 years ago
Thanks for the reply Dirk! This would highlight or select the specified characters right? So, if I want to color them, does the following make sense?
setSelectionStart() and setSelectionEnd() to select the text. Then, setSelectedTextColor() to change the color of the text.
This is for anyone else who has tried to achieve this with a JTextArea also!
Thanks again!