Possible Duplicate:
Highlighting few of the words of a text file opened in a frame
I am finding a string in JTextArea
and once that string is found, I want to highlight that string with some color. I have been searching internet for finding a solution but couldn't find an answer.
How can I highlight a string in JTextArea
?