/* A basic extension of the java.awt.Frame class */ import java.awt.*; public class Frame3 extends Frame { String title3=""; String sub=""; Applet1 app; int slen; int location; public Frame3() { // This code is automatically generated by Visual Cafe when you add // components to the visual environment. It instantiates and initializes // the components. To modify the code, only use code syntax that matches // what Visual Cafe can generate, or Visual Cafe may be unable to back // parse your Java file into its visual environment. //{{INIT_CONTROLS setLayout(null); setBackground(new java.awt.Color(208,211,181)); setFont(new Font("Serif", Font.PLAIN, 12)); setSize(295,144); setVisible(false); label1.setText("You are Invited for"); add(label1); label1.setForeground(new java.awt.Color(91,0,18)); label1.setFont(new Font("Serif", Font.BOLD, 14)); label1.setBounds(12,12,242,45); add(textField1); textField1.setForeground(new java.awt.Color(91,0,18)); textField1.setFont(new Font("Serif", Font.BOLD, 10)); textField1.setBounds(12,60,276,24); button1.setLabel("Accept"); add(button1); button1.setBackground(new java.awt.Color(208,211,181)); button1.setForeground(new java.awt.Color(91,0,18)); button1.setFont(new Font("Serif", Font.BOLD, 10)); button1.setBounds(36,108,48,24); button2.setLabel("Cancel"); add(button2); button2.setBackground(new java.awt.Color(208,211,181)); button2.setForeground(new java.awt.Color(91,0,18)); button2.setFont(new Font("Serif", Font.BOLD, 10)); button2.setBounds(120,108,48,24); button3.setLabel("Reject"); add(button3); button3.setBackground(new java.awt.Color(208,211,181)); button3.setForeground(new java.awt.Color(91,0,18)); button3.setFont(new Font("Serif", Font.BOLD, 10)); button3.setBounds(204,108,56,24); setTitle("A Simple Frame"); //}} //{{INIT_MENUS //}} //{{REGISTER_LISTENERS SymWindow aSymWindow = new SymWindow(); this.addWindowListener(aSymWindow); SymAction lSymAction = new SymAction(); button1.addActionListener(lSymAction); button2.addActionListener(lSymAction); button3.addActionListener(lSymAction); //}} } public Frame3(String title,String subject,Applet1 ap) { this(); setTitle(title); title3=title; String s=""; if (subject.equals("")) sub="(None)"; else { sub=subject; slen=sub.length(); for(int i=1;i