import java.applet.*; import java.awt.*; public class Ka extends Applet { Image art[]=new Image[5]; String ima[]=new String[5]; boolean mos=true; public void init() { art[1] = getImage(getDocumentBase(), "talk.gif"); art[2]= getImage(getDocumentBase(),"good.gif"); art[3]=getImage(getDocumentBase(),"def.gif"); art[4]=getImage(getDocumentBase(),"bad.gif"); } public void paint(Graphics g) { do{ for(int w=1;w<=4;w=w+1){ for(int q=155;q>=1;q--){ g.drawImage(art[w], 0, q, this);} try{ Thread.sleep(3000); } catch(Exception e){e.printStackTrace();} } } while(mos); }}