Note that you are calling repaint() prior to the JFrame (and its contents) being visible. To accomplish the animation as I understand it, you need some type of threading or Timer. For instance, the...