AppApp app = new AppApp();
final Frame f = new Frame("AppApp Demo");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
f.hide();
f.dispose();
}
});
f.setLayout(new BorderLayout());
app.inAnApplet = false;
f.add("Center", app);
// Must do this before init() since init() may use showStatus()
f.add("South", app.status = new Label());
f.setSize(300, 200);
app.status.setSize(f.getSize().width, app.status.getSize().height);
// Here we pretend to be a browser!
// A fancier version would make an AppletStub and pass it
// into the Applet with getAppletStub().
app.init();
app.start();
f.setVisible(true);