The usual way for animation is to have the listener change the x,y location of the thing to be moved, and then call repaint(). The repaint method will call the paint method which should use the x,y...