image flickering in java

Status
Not open for further replies.
heres what i got.. a rectangle.- created using fillRect(x,y,10,20) , thats in a while, during every loop, the x and y are either incereased or decreased by 1... the problem is, during the motion.. the rectangle is flickering,...the rectangle is placed on a bigger one(doesnt move), that also is in that while lloop, without that second(bigger)rectangle the first rectangle 10x20 would leave a trail
 
Status
Not open for further replies.
Back
Top Bottom