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