i have a simple swing gui where there are two text fields one for search and another for replace just similar to any other Find and Replace utility.There is a textarea,where the words are found and replaced.This code is working as it should now what I want is, I want to change the background-color or font color just to indicate which word is found (like any other search utilities).How can I do this using java?
Share
You can use a Highlighter: