chefsride 0 Newbie Poster

My problem is that I need to make a program that has a JTextArea, a button and a JTextPane in it. The idea is to put in the JTextArea either by typing or by pasting java source code. Then press the button and out would come a colored version of the code based on the keywords, class names, Operators, Strings, and etc. We are suppose to add the html code to the input string to make the code have color like an IDE would do as you type the source code and then output the result to a JTextPane. I have no problem making the GUI for this program. I am having problem figuring out what would be the best way to do the string comparisons (depending on if I use String, StringBuffer, or ArrayLists). Please help