Hello,

I'm trying to draw a line of small images i.e.

int x=10;
int y=10;

protected void paint(Graphics g) {
for (int i=0; i < 100; i++ ) {
g.drawImage(images[i],x,y,Graphics.TOP|Graphics.LEFT);
x = x + images[i].getWidth();
}
}

in the keyPressed method I call
repaint();
serviceRepaints();

I thought that the small images shuld be drawn one by one, but it looks like the system accumulates all images and then draws it as one image.

Is there any way to make the system to draw every image? I need to get some kind of animation.

Thank you,
Andrey