/* A basic extension of the java.awt.Frame class */ import java.awt.*; //import symantec.itools.awt.InvisibleButton; //import symantec.itools.awt.Label3D; public class Frame1 extends Frame { String title1=""; Applet1 app; String str[] = {"Jeyanthi*","SVBRao*","Supriya*","Rajan*","Gyanesh*","Mukul*","Dinesh*","Ashok*","Parvinder*"}; public static String buddylist[]=new String[50]; public Frame1() { // 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(682,481); setVisible(false); list1.setMultipleMode(true); list1.setBackground(new java.awt.Color(208,211,181)); list1.setForeground(new java.awt.Color(91,0,18)); list1.setFont(new Font("Serif", Font.BOLD, 10)); add(list1); list1.setBounds(36,108,132,192); label1.setText("Sort By"); add(label1); label1.setForeground(new java.awt.Color(91,0,18)); label1.setFont(new Font("Serif", Font.BOLD, 10)); label1.setBounds(36,324,48,40); choice1.addItem("Speciality"); choice1.addItem("SubSpeciality"); choice1.addItem("Affililation"); choice1.addItem("Association"); try { choice1.select(0); } catch (IllegalArgumentException e) { } choice1.setBackground(new java.awt.Color(208,211,181)); choice1.setForeground(new java.awt.Color(91,0,18)); choice1.setFont(new Font("Serif", Font.BOLD, 10)); add(choice1); choice1.setBounds(84,324,92,22); button1.setLabel("Go"); 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(180,324,24,24); button2.setLabel("Message"); 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(48,372,49,24); button3.setLabel("File Transfer"); 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(108,372,72,24); button4.setLabel("Chat"); add(button4); button4.setBackground(new java.awt.Color(208,211,181)); button4.setForeground(new java.awt.Color(91,0,18)); button4.setFont(new Font("Serif", Font.BOLD, 10)); button4.setBounds(192,372,36,24); radioButton1.setCheckboxGroup(Group1); radioButton1.setLabel("Enter Buddy Name"); add(radioButton1); radioButton1.setForeground(new java.awt.Color(91,0,18)); radioButton1.setFont(new Font("Serif", Font.BOLD, 10)); radioButton1.setBounds(252,120,125,33); radioButton1.setVisible(false); add(textField1); textField1.setForeground(new java.awt.Color(91,0,18)); textField1.setFont(new Font("Serif", Font.BOLD, 10)); textField1.setBounds(264,156,127,24); textField1.setVisible(false); radioButton2.setCheckboxGroup(Group1); radioButton2.setLabel("Search for New Buddies"); add(radioButton2); radioButton2.setForeground(new java.awt.Color(91,0,18)); radioButton2.setFont(new Font("Serif", Font.BOLD, 10)); radioButton2.setBounds(252,192,168,32); radioButton2.setVisible(false); label2.setText("Speciality"); add(label2); label2.setForeground(new java.awt.Color(91,0,18)); label2.setFont(new Font("Serif", Font.BOLD, 10)); label2.setBounds(252,228,60,39); label2.setVisible(false); choice2.addItem("(None)"); try { choice2.select(0); } catch (IllegalArgumentException e) { } choice2.setBackground(new java.awt.Color(208,211,181)); choice2.setForeground(new java.awt.Color(91,0,18)); choice2.setFont(new Font("Serif", Font.BOLD, 10)); add(choice2); choice2.setBounds(348,228,105,22); choice2.setVisible(false); label3.setText("Affiliation"); add(label3); label3.setForeground(new java.awt.Color(91,0,18)); label3.setFont(new Font("Serif", Font.BOLD, 10)); label3.setBounds(480,228,85,26); label3.setVisible(false); choice3.addItem("(None)"); try { choice3.select(0); } catch (IllegalArgumentException e) { } choice3.setBackground(new java.awt.Color(208,211,181)); choice3.setForeground(new java.awt.Color(91,0,18)); choice3.setFont(new Font("Serif", Font.BOLD, 10)); add(choice3); choice3.setBounds(564,228,92,22); choice3.setVisible(false); label4.setText("Sub Speciality"); add(label4); label4.setForeground(new java.awt.Color(91,0,18)); label4.setFont(new Font("Serif", Font.BOLD, 10)); label4.setBounds(252,288,84,36); label4.setVisible(false); choice4.addItem("(None)"); try { choice4.select(0); } catch (IllegalArgumentException e) { } choice4.setBackground(new java.awt.Color(208,211,181)); choice4.setForeground(new java.awt.Color(91,0,18)); choice4.setFont(new Font("Serif", Font.BOLD, 10)); add(choice4); choice4.setBounds(348,288,109,22); choice4.setVisible(false); label5.setText("Association"); add(label5); label5.setForeground(new java.awt.Color(91,0,18)); label5.setFont(new Font("Serif", Font.BOLD, 10)); label5.setBounds(480,288,84,24); label5.setVisible(false); choice5.addItem("(None)"); try { choice5.select(0); } catch (IllegalArgumentException e) { } choice5.setBackground(new java.awt.Color(208,211,181)); choice5.setForeground(new java.awt.Color(91,0,18)); choice5.setFont(new Font("Serif", Font.BOLD, 10)); add(choice5); choice5.setBounds(564,288,100,22); choice5.setVisible(false); label6.setText("Buddy ID"); add(label6); label6.setForeground(new java.awt.Color(91,0,18)); label6.setFont(new Font("Serif", Font.BOLD, 10)); label6.setBounds(372,348,72,27); label6.setVisible(false); add(textField2); textField2.setBackground(new java.awt.Color(208,211,181)); textField2.setForeground(new java.awt.Color(91,0,18)); textField2.setFont(new Font("Serif", Font.BOLD, 10)); textField2.setBounds(456,348,94,28); textField2.setVisible(false); button5.setLabel("Go"); add(button5); button5.setBackground(new java.awt.Color(208,211,181)); button5.setForeground(new java.awt.Color(91,0,18)); button5.setFont(new Font("Serif", Font.BOLD, 10)); button5.setBounds(444,408,37,24); button5.setVisible(false); label7.setText("Add"); label7.setAlignment(java.awt.Label.CENTER); add(label7); label7.setForeground(new java.awt.Color(91,0,18)); label7.setFont(new Font("Serif", Font.BOLD, 10)); label7.setBounds(48,24,36,12); button6.setLabel("Add"); add(button6); button6.setBackground(new java.awt.Color(208,211,181)); button6.setFont(new Font("Serif", Font.BOLD, 10)); button6.setBounds(36,12,60,36); button6.setVisible(false); label8.setText("Delete"); label8.setAlignment(java.awt.Label.CENTER); add(label8); label8.setForeground(new java.awt.Color(91,0,18)); label8.setFont(new Font("Serif", Font.BOLD, 10)); label8.setBounds(108,24,36,12); button7.setLabel("Delete"); add(button7); button7.setBackground(new java.awt.Color(208,211,181)); button7.setFont(new Font("Serif", Font.BOLD, 10)); button7.setBounds(96,12,60,36); button7.setVisible(false); label9.setText("View"); label9.setAlignment(java.awt.Label.CENTER); add(label9); label9.setForeground(new java.awt.Color(91,0,18)); label9.setFont(new Font("Serif", Font.BOLD, 10)); label9.setBounds(168,24,36,12); button8.setLabel("View"); add(button8); button8.setBackground(new java.awt.Color(208,211,181)); button8.setFont(new Font("Serif", Font.BOLD, 10)); button8.setBounds(156,12,60,36); button8.setVisible(false); label10.setText("Search"); label10.setAlignment(java.awt.Label.CENTER); add(label10); label10.setForeground(new java.awt.Color(91,0,18)); label10.setFont(new Font("Serif", Font.BOLD, 10)); label10.setBounds(228,24,48,12); button9.setLabel("Search"); add(button9); button9.setBackground(new java.awt.Color(208,211,181)); button9.setFont(new Font("Serif", Font.BOLD, 10)); button9.setBounds(216,12,72,36); button9.setVisible(false); label11.setText("Help"); label11.setAlignment(java.awt.Label.CENTER); add(label11); label11.setForeground(new java.awt.Color(91,0,18)); label11.setFont(new Font("Serif", Font.BOLD, 10)); label11.setBounds(300,24,36,12); button10.setLabel("Help"); add(button10); button10.setBackground(new java.awt.Color(208,211,181)); button10.setFont(new Font("Serif", Font.BOLD, 10)); button10.setBounds(288,12,60,36); button10.setVisible(false); label12.setText("Exit"); label12.setAlignment(java.awt.Label.CENTER); add(label12); label12.setForeground(new java.awt.Color(91,0,18)); label12.setFont(new Font("Serif", Font.BOLD, 10)); label12.setBounds(360,24,36,12); button11.setLabel("Exit"); add(button11); button11.setBackground(new java.awt.Color(208,211,181)); button11.setFont(new Font("Serif", Font.BOLD, 10)); button11.setBounds(348,12,60,36); button11.setVisible(false); label13.setText("Profile"); label13.setAlignment(java.awt.Label.CENTER); add(label13); label13.setForeground(new java.awt.Color(91,0,18)); label13.setFont(new Font("Serif", Font.BOLD, 10)); label13.setBounds(168,48,36,12); label13.setVisible(false); button12.setLabel("Profile"); add(button12); button12.setBackground(new java.awt.Color(208,211,181)); button12.setFont(new Font("Serif", Font.BOLD, 10)); button12.setBounds(156,36,60,36); button12.setVisible(false); label14.setText("Offline Messages"); label14.setAlignment(java.awt.Label.CENTER); add(label14); label14.setForeground(new java.awt.Color(91,0,18)); label14.setFont(new Font("Serif", Font.BOLD, 10)); label14.setBounds(156,72,108,12); label14.setVisible(false); add(button13); button13.setBackground(new java.awt.Color(208,211,181)); button13.setFont(new Font("Serif", Font.BOLD, 10)); button13.setBounds(156,60,120,36); button13.setVisible(false); label15.setText("How to Use MD Messenger?"); label15.setAlignment(java.awt.Label.CENTER); add(label15); label15.setForeground(new java.awt.Color(91,0,18)); label15.setFont(new Font("Serif", Font.BOLD, 10)); label15.setBounds(288,48,156,12); label15.setVisible(false); add(button14); button14.setBackground(new java.awt.Color(208,211,181)); button14.setFont(new Font("Serif", Font.BOLD, 10)); button14.setBounds(288,36,168,36); button14.setVisible(false); label16.setText("About MD Messenger"); label16.setAlignment(java.awt.Label.CENTER); add(label16); label16.setForeground(new java.awt.Color(91,0,18)); label16.setFont(new Font("Serif", Font.BOLD, 10)); label16.setBounds(300,72,144,12); label16.setVisible(false); button15.setLabel("About MD Messenger"); add(button15); button15.setBackground(new java.awt.Color(208,211,181)); button15.setFont(new Font("Serif", Font.BOLD, 10)); button15.setBounds(288,60,168,36); button15.setVisible(false); label17.setText("!"); label17.setAlignment(java.awt.Label.CENTER); add(label17); label17.setBackground(new java.awt.Color(91,0,18)); label17.setForeground(new java.awt.Color(208,211,181)); label17.setFont(new Font("Serif", Font.BOLD, 10)); label17.setBounds(204,324,24,24); setTitle("A Simple Frame"); //}} //{{INIT_MENUS //}} //{{REGISTER_LISTENERS SymWindow aSymWindow = new SymWindow(); this.addWindowListener(aSymWindow); SymAction lSymAction = new SymAction(); button4.addActionListener(lSymAction); SymMouse aSymMouse = new SymMouse(); label7.addMouseListener(aSymMouse); button7.addActionListener(lSymAction); label8.addMouseListener(aSymMouse); this.addMouseListener(aSymMouse); label9.addMouseListener(aSymMouse); label10.addMouseListener(aSymMouse); label11.addMouseListener(aSymMouse); label12.addMouseListener(aSymMouse); button11.addActionListener(lSymAction); SymItem lSymItem = new SymItem(); radioButton1.addItemListener(lSymItem); radioButton2.addItemListener(lSymItem); label13.addMouseListener(aSymMouse); label14.addMouseListener(aSymMouse); label15.addMouseListener(aSymMouse); label16.addMouseListener(aSymMouse); button5.addActionListener(lSymAction); button3.addActionListener(lSymAction); //}} } public Frame1(String title, Applet1 ap) { this(); setTitle(title); title1=title; app=ap; String s=app.textField1.getText()+"*"; list1.addItem(s); for (int i=0;i