hi,
i am desiging a dx-ball game in awt/swing where, bricks will placed in rows, a ball will hit the bricks and what ever brick is touched by the ball should be disappeared.
so i've loaded images for bricks and animated ball. i used "clearRect"(java.awt.Graphics)for disappearing image depending on the ball position.
the problem is it is clearing the lower row perfectly and not going to the next row(obviously it wont go

) because it is clearing the same rectangle which it has already cleared.
so can any one suggest me how to remove an image completely(i think you got my sense in using "completley)?
thank you.