import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.util.*; public class Graafid extends Applet implements MouseListener{ int mitu=0; int mitu2=0; int mitmes1,mitmes2; int x1,y1,x2,y2; int olemas1=0; int olemas2=0; int[] koordinaadid_x=new int[300]; int[] koordinaadid_y=new int[300]; int[][] jooned=new int[300][4]; public Graafid(){ addMouseListener(this); } public void mousePressed(MouseEvent e){ Graphics g=Graafid.this.getGraphics(); x1=e.getX(); y1=e.getY(); for(int i=0;i