import java.applet.*; import java.awt.*; import java.net.*; public class DGTWikstrom extends Applet { public void start() { setLayout(new BorderLayout()); Label l = new Label(getParameter("greeting"), Label.CENTER); l.setFont(new Font("Times", Font.BOLD, 18)); add("Center", l); Panel p = new Panel(); p.add(new Button("David's Web Page")); p.add(new Button("David Wikstrom")); add("South", p); } public boolean action(Event evt, Object arg) { String uName; URL u; if (arg.equals("David Wikstrom")) uName = "mailto:GTBoy540@aol.com"; else if (arg.equals("David's Web Page")) uName = "www.gtsk8.cjb.net"; else return false; try { u = new URL(uName); getAppletContext().showDocument(u); } catch(Exception e) { showStatus("Error " + e); } return true; } }