Sleeping the thread is NOT how to accomplish animation in a Java Swing application. You should read more about Java game loops (there are several excellent articles on the topic), Java custom...