The paint method may be called multiple times - every time the JVM thinks that part of the GUI need to be redrawn, even when you'd think that there's no need for it. Your code should not make any assumptions about how often that will happen.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads