Image img=getToolkit().getImage( "C:\\Bild.jpg");g.drawImage(img,0,0,this);
public class KLASSENNAME{ int bild = 1; ........ usw.}
Image img;switch(bild){ case 1: img = getToolkit().getImage( " C:\\Bild 1.gif"); g2.drawImage(img, 0, 0, null); break; case 2: img = getToolkit().getImage( " C:\\Bild 2.gif"); g2.drawImage(img, 0, 0, null); break; case 3: img = getToolkit().getImage( " C:\\Bild 3.gif"); g2.drawImage(img, 0, 0, null); break; default: bild = 1;}
bild++;if(bild == 4) //Hier Anzahl der Bilder +1bild = 1;repaint();