Changing color of similar elements in two JLists

I'm making an app which contains two Jlists. The list elements are to be compared and the same elements from both lists should show in same colors. I'm done with the comparison part but the coloring part is a problem. Tried AtributedString but no results, I'll have to use cellrenderer but how to get that specific cell to be chosen to setForeground?