import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Kukkumine extends Applet implements MouseListener, Runnable{ int x=100; double y=100; int alaServ=300; int r=5; double samm=1; double sammuMuutus=0.1; public Kukkumine(){ addMouseListener(this); new Thread(this).start(); } public void paint(Graphics g){ g.drawOval(x-r, (int)y-r, 2*r, 2*r); } public void run(){ while(true){ try{Thread.sleep(100);} catch(Exception viga){} if(y