1 // $Id$ 2 3 import java.awt.*; 4 import java.awt.event.*; 5 6 public class notsent extends Frame { 7 Label label1; 8 Label label2; 9 Button button1; 10 notsent()11 public notsent() { 12 super(" "); 13 14 setLayout(null); 15 addNotify(); 16 setSize(500,200); 17 label1 = new Label("You have not completed all the necessary information"); 18 label1.setFont(new Font("Dialog",Font.BOLD,14)); 19 add(label1); 20 label1.setBounds(45,80,500,20); 21 label2 = new Label("Please go back and fill out all required fields."); 22 label2.setFont(new Font("Dialog",Font.BOLD,14)); 23 add(label2); 24 label2.setBounds(70,100,500,20); 25 button1= new Button("Okay"); 26 add(button1); 27 button1.setBounds(200,130,80,30); 28 button1.addActionListener(new ActionListener() { 29 public void actionPerformed(ActionEvent e) { 30 clickedButton1(); }});} 31 setVisible()32 public synchronized void setVisible() { 33 setLocation(100,100); 34 } 35 clickedButton1()36 public void clickedButton1() { 37 setVisible(false); 38 } windowClosing(WindowEvent event)39 public void windowClosing(WindowEvent event){} windowClosed(WindowEvent event)40 public void windowClosed(WindowEvent event) {} windowDeiconified(WindowEvent event)41 public void windowDeiconified(WindowEvent event) {} windowIconified(WindowEvent event)42 public void windowIconified(WindowEvent event){} windowActivated(WindowEvent event)43 public void windowActivated(WindowEvent event) {} windowOpened(WindowEvent event)44 public void windowOpened(WindowEvent event) {} 45 } 46