import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Joonis4a extends Applet implements ActionListener{ int nr=3; TextField tf=new TextField(""+nr); Button nupp=new Button(" OK "); public Joonis4a(){ add(tf); add(nupp); nupp.addActionListener(this); } public void paint(Graphics meekarg){ for(int i=0; i