import java.awt.*;

public class CafeApplet extends java.applet.Applet {

    public void init() {

        //{{INIT_CONTROLS
        setLayout(null);
        addNotify();
        resize(insets().left + insets().right + 475, insets().top +
				insets().bottom + 225);
        button1=new Button("Button");
        add(button1);
        button1.reshape(insets().left + 91,insets().top + 30,88,26);
        edit1=new TextField(7);
        add(edit1);
        edit1.reshape(insets().left + 245,insets().top + 30,79,23);
        //}}

        super.init();
    }

    public boolean handleEvent(Event event) {
        if (event.id == Event.LOST_FOCUS && event.target == edit1) {
                lostFocusEdit1(event);
                return true;
        }
        else
        if (event.id == Event.GOT_FOCUS && event.target == edit1) {
                gotFocusEdit1(event);
                return true;
        }
        else
        if (event.id == Event.ACTION_EVENT && event.target == 
button1) {
                clickedButton1();
                return true;
        }

        return super.handleEvent(event);
    }

    //{{DECLARE_CONTROLS
    Button button1;
    TextField edit1;
    //}}

    public void clickedButton1() {
        // to do: put event handler code here.
    }
    public void gotFocusEdit1(Event ev) {
        // to do: put event handler code here.
    }
    public void lostFocusEdit1(Event ev) {
        // to do: put event handler code here.
    }
}