public class About extends Frame { About() { Button btn = new Button("Popup about..."); add("Center", btn); addActionListener(new PopupDialog()); resize(200, 200); setVisible(true); } }