import java.awt.*; import java.awt.event.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class kolmas3{ public static void main(String argumendid[]){ Frame f=new hiireke(); f.setSize(200, 200); f.setTitle("ringikesed"); f.addWindowListener(new aknakuular()); f.setVisible(true); } } class hiireke extends Frame implements MouseListener{ public hiireke() {addMouseListener(this); } Ring[] ringid=new Ring[200]; int ringidearv=0; int x,y; public void mousePressed(MouseEvent e){ ringid[ringidearv]=new Ring(); ringid[ringidearv].x=e.getX(); ringid[ringidearv].y=e.getY(); ringidearv++; repaint(); } public void paint(Graphics g){ g.setColor(Color.white); g.fillRect(0, 0, getSize().width, getSize().height); for(int i=0;i