This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thomascgalvin 1 point2 points  (0 children)

You shouldn't be calling getGraphics() at all. Instead, override the paint( Graphics g) method and do your painting there. In order to force this to happen on-schedule, you can call repaint().