/* A basic extension of the java.applet.Applet class */ import java.awt.*; import java.applet.*; public class WhileYouWereOut extends Applet { void button1_Clicked(Event event) { //{{CONNECTION // Create and show the Frame (new MainFrame()).show(); //}} } public void init() { super.init(); // Take out this line if you don't use symantec.itools.net.RelativeURL //symantec.itools.lang.Context.setDocumentBase(getDocumentBase()); //{{INIT_CONTROLS setLayout(new BorderLayout(1,1)); addNotify(); resize(106,27); setFont(new Font("Dialog", Font.PLAIN, 11)); setBackground(new Color(16777215)); button1 = new java.awt.Button("Click here to start"); button1.reshape(1,1,102,24); add(button1); //}} } public boolean handleEvent(Event event) { if (event.target == button1 && event.id == Event.ACTION_EVENT) { button1_Clicked(event); return true; } return super.handleEvent(event); } //{{DECLARE_CONTROLS java.awt.Button button1; //}} }