Generally paintComponent() does not paint continually
. It get invoked occasionally
when Swing determines it needs be painted.
If your method is being invoked continually then I can think of a couple of possible problems. You are:
- manually invoking repaint()
- changing a property of the component in the paintComponent() method which then automatically invokes repaint()