public class Graphics2DTest extends JPanel implements ActionListener{ private Timer time = new Timer(5,(ActionListener) this); int x = 0,y = 0; public void paintComp
You need to clear the background first.
A resource is this:
http://java.sun.com/products/jfc/tsc/articles/painting/