import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.net.URL; public class Linnud extends Applet implements ActionListener{ URL base; Image pilt; public void init() { base = getDocumentBase(); pilt = getImage(base, "tuvike1.jpg"); } int nr=1; TextField tf=new TextField(""+nr); Button nupp=new Button(" Olgu "); int vasakult=250; int ylalt=50; int vahe= 15; public Linnud(){ add(tf); add(nupp); nupp.addActionListener(this); } public void paint(Graphics g){ //g.setColor(Color.green); //g.drawRect(vasakult,ylalt,10, 10); if(nr!=0){ g.drawImage(pilt, vasakult, ylalt,20,20,this);} for(int i=0; i