g.setColor(Color.white); //or purple or summet for (int i = 0; i < height; i++) { g.drawLine(0, i, 0, width); Thread.sleep(10); } //draw new thing