on up back w3c Fifth International World Wide Web Conference

Mortgage Applet (3)

    public void init()
    {   balField = new TextField("", 15);
        intField = new TextField("", 5);
        nyrField = new TextField("", 5);
        OK = new Button("Compute");
        msgArea = new TextArea("", 15, 60);
        msgArea.setEditable(false);
        add(new Label("Enter principal"));
        add(balField);
        add(new Label("Enter annual interest rate"));
        add(intField);
        add(new Label("Enter number of years"));
        add(nyrField);
        add(OK);
        add(msgArea);
    } 


Java - An Introductory Language Tutorial (E.A.Johnson)