ok = new Button("OK"); can = new Button("Cancel");
ok = new JButton("OK"); can = new JButton("Cancel");
	public GoToPage(Frame f, String title) {		super(f);		setTitle(title);		Label l = new Label("Page Number:");		tf = new TextField(4);		tf.setText("1");		// set the text initially selected so you can easily overtype it		tf.selectAll();		ok = new Button("OK");		can = new Button("Cancel");		Panel top = new Panel();		top.add(l);		top.add(tf);		Panel bottom = new Panel();		bottom.add(ok);		bottom.add(can);		add(BorderLayout.NORTH, top);		add(BorderLayout.SOUTH, bottom);		pack();	}