import java.awt.*; import java.awt.event.*; public class Joonis extends Frame implements ActionListener{ int nr=8; //algne lindude arv TextField tf=new TextField(" "+nr); Button nupp=new Button(" LINDU "); public Joonis(){ //raam setLayout(new FlowLayout()); add(tf); add(nupp); nupp.addActionListener(this); setSize(300, 300); setVisible(true); } public void paint(Graphics g){ //lindude joonistamine g.drawOval(5, 150, 3, 3); for(int i=2; i