import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Hiirekuular extends Applet implements MouseListener{ int vajutus=0; int x1, y1 ,x2 ,y2,x,y; public void init(){ addMouseListener(this); } public void mouseClicked(MouseEvent e){ Graphics g=getGraphics(); g.drawString(vajutus+" ",e.getX(),e.getY()); vajutus++; if(vajutus==1){ x1=e.getX(); y1=e.getY(); } if(vajutus==2){ x2=e.getX(); y2=e.getY(); for (x=x1 ;x