import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Kukkumine2 extends Applet implements MouseListener, Runnable{ int x=100; double y=100; int alaServ=222; int r=5; double samm=1; double sammuMuutus=0.1; public Kukkumine2(){ addMouseListener(this); new Thread(this).start(); } public void paint(Graphics g){ g.drawOval(x-r, (int)y-r+7, 1*r, 1*r); g.drawLine(30, 9, 165, 194); g.drawLine(30, 194, 165, 9); g.drawLine(30, 9, 165, 9); g.drawLine(30,194,165,194); g.drawLine(37+(int)y/10, 20+(int)y/8, 158-(int)y/10, 20+(int)y/8); } public void run(){ while(true){ try{Thread.sleep(5);} catch(Exception viga){} if(y