import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Majake extends Applet implements ActionListener{ int nr=3; int korrustearv=4; TextField tf1=new TextField(""+nr); TextField tf2=new TextField(""+korrustearv); Button nupp=new Button(" OK "); int vasak=50; int yla=100; int aknalaius=20; int trepikojalaius=30; int aknakorgus=20; int trepikojakorgus=30; public Majake(){ add(tf1); add(tf2); add(nupp); nupp.addActionListener(this); } public void paint(Graphics g){ for(int i=0; i