import java.awt.*; import java.awt.image.*; import java.net.*; import java.io.*; public class Jooned extends Frame{ int punkte = 4, k, i, joonis; double a1, a2, b1, b2, x, y, k1, k2; static int a, b; int[] koordx = new int[100]; int[] koordy = new int[100]; public Jooned(){ setTitle("Jooned"); MenuBar mbar = new MenuBar(); Menu m = new Menu("Algus"); m.add(new MenuItem("Sisesta arvuliselt")); m.addSeparator(); m.add(new MenuItem("Välju")); mbar.add(m); setMenuBar(mbar); } public boolean action(Event evt, Object arg){ if (evt.target instanceof MenuItem) if(arg.equals("Sisesta arvuliselt")){ Sisse2 ab2 = new Sisse2(this); ab2.show(); for (k=1;kMath.min(koordx[1], koordx[2]) && xMath.min(koordx[3], koordx[4]) && x=punkte){ joonis=100; dispose(); return true; } i++; label="Sisesta "+i+". punkti koordinaadid"; lb.setText(label); } return false; } public boolean handleEvent(Event evt){ if (evt.id == Event.WINDOW_DESTROY && evt.target == this) dispose(); return super.handleEvent(evt); } } }