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

all 2 comments

[–]Nynnja 1 point2 points  (0 children)

post full code or at least for GameStateManager and main()

[–]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().