I am trying to make an 'advanced text editor' in Java. However, I can't really find a way to search for certain words in a TextArea and set the font/color of only the word or words it finds. (Kind of like how Eclipse has a pinkish color for 'import', but blue for variable names.
Here is the source of what I have so far: http://pastebin.com/1fKBUCWY