Lab Applet
public class Applet1 extends Applet implements ActionListener
prompt = new Label("put it here :");
input = new TextField(10);
input.addActionListener(this);
public void actionPerformed(ActionEvent e)
number = Integer.parseInt(e.getActionCommand());
public void paint(Graphics g) {
g.drawString("sum = " + sum,100,100);