I’ve got a component (similar to a listbox) in which I’m drawing a substantial amount of text. I’d like to add a simple color change on mouseOver effect, but it’s just too slow to be useful. Right now, my paint method is essentially a for loop iterating over 200 or so array items, drawing a background rectangle and the text for that item, with a special case for the hover item where the background is drawn with a different color.
I know this can’t be the best method, but the only alternative I can think of is to make components out of each item and handling mouseEnter and mouseExit, but I can’t imagine that would be much faster, would it?