import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Ring extends Applet implements ActionListener{ int nr=3; TextField tf=new TextField(""+nr); TextField kf=new TextField(""+nr); Button nupp=new Button(" OK "); public Ring(){ add(tf); add(kf); add(nupp); nupp.addActionListener(this); } public void paint(Graphics g){ int treeArv=Integer.parseInt(kf.getText()); for(int korrus=0; korrus