import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Joonis4 extends Applet implements ActionListener{ int nr=3; TextField tf=new TextField(String.valueOf(nr)); public Joonis4(){ add(tf); tf.addActionListener(this); } public void paint(Graphics g){ for(int i=0; i