import java.awt.*; import java.awt.event.*; public class muster extends Panel implements MouseListener{ public muster(){ addMouseListener(this); } public void mousePressed(MouseEvent e){ int x=e.getX(); int y=e.getY(); //saab hiirevajutusega koordinaadid int dx=2; //liikumiskiirused int dy=1; int parem=200, vasak=0, ulal=5, all=250; Graphics g=this.getGraphics(); g.drawOval(x,y,10,10); g.setColor(Color.yellow); joonistaPall(g, x, y); while(true){ if(x>parem)dx=-Math.abs(dx); // hakkab while-tsüklis liikumine if(y>all)dy=-Math.abs(dy); if(x