import java.awt.*;
import java.applet.*;
/*<applet code="Animate" width=800 height=600></applet> */
public class Animate extends Applet
{
public void paint(Graphics g)
{
Image img = new getImage(getDocumentBase(), "Plain.gif");
for (int x = 0; x < 800; x++)
{
g.drawImage(img, x, 0, null);
try
{
Thread.sleep(20);
}
catch (InterruptedException ie)
{}
}
}
}This code snippet for Create a Simple Applet in JAVA.
