import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.net.URL; import java.math.*; import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Auto3 extends Applet implements ActionListener{ int x=100; int y=100; TextField tf=new TextField("500"); Button nupp=new Button("Kiirenda"); public Auto3(){ add(tf); add(nupp); nupp.addActionListener(this); tf.addActionListener(this); } int viivitus; int kordi=8; Image pilt1=Toolkit.getDefaultToolkit().getImage("auto.gif"); Image pilt2=Toolkit.getDefaultToolkit().getImage("1.gif"); public void actionPerformed(ActionEvent e){ Graphics g=this.getGraphics(); viivitus=Integer.parseInt(tf.getText().trim()); for(int i=0; i