Ok, I have a little animation program, but its doing something weird and I don't understand why:
Code:
final int LOOP = 100;
...
Image [] images = new Image [54];  // thats the number of frames i have
for( int i = 0; i < 54; i++ )
{
    images[i] = new ImageIcon( SOME_PATH + SOME_FILENAME + i ).getImage();
}
...
for( int l = 0; l < LOOP; l++ )
{
    for( int x = 0; x < 54; x++ )
    {
        fill( images[x], 0, 0 );
        render();
    }
}
...
fill() is a function that fills the image into a back buffer, and render fills the back buffer on to the screen.

HERE's THE PROBLEM: When i run the program it starts out by painting frame( or image ) 1 to the screen, then goes blank, then 1, 2, blank... 1, 2, 3, blank... 1, 2, 3, 4, blank... and so on until its rendered all of them then it loops properly.... WHATS UP WITH THIS??