Possible Duplicate:
Java - repaint(x, y, w, h) doesn't call paintComponent? (with SSCCE)
I'm trying out this neato performance trick repaint(x, y, w, h) and it sure is helping performance a lot.
Unfortunately, the special extras I've put into a paintComponent in the same class are now not being painted. I put a System.out.println() test at the beginning of paintComponent and it turns out it's not even called (as our astute readers probably were thinking from the beginning of this paragraph). When I use a plain repaint(), paintComponent() is called, no problem.
Specifically, I've got a JLabel, with a mouseListener, that on mouseEnter repaints the label.
What's the deal? I hope I'm missing something and this is still possible? That extra performance sure is nice...