final Frame f = new Frame("Page Dialog Test"); Button b; f.add(b = new Button("Show Dialog"));
final JFrame f = new JFrame("Page Dialog Test"); JButton b; f.getContentPane().add(b = new JButton("Show Dialog"));
	public static void main(String unused[]) {		final Frame f = new Frame("Page Dialog Test");		Button b;		f.add(b = new Button("Show Dialog"));		b.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				new GoToPage(f, "GoToPage Demo").setVisible(true);			}		});		f.pack();		f.setVisible(true);	}