import java.awt.*; import java.awt.event.*; public class about extends Frame implements ActionListener { public Toolkit tk; public Image img; public Label lbl_1; public Label lbl_2; public Label lbl_3; public Label lbl_4; public Button but_ok; public about() { setResizable(false); setForeground(Color.black); //setBackground(Color.lightGray); setBackground(new Color(255,255,210)); setTitle("About"); setLayout(null); // get image tk = getToolkit(); img = tk.getImage("air.gif"); // initialise lbl_1 = new Label("FLIGHT INFORMATION SYSTEM - Ver.1.0 - May 1998",Label.CENTER); lbl_2 = new Label("Developed by :",Label.CENTER); lbl_3 = new Label("E-Cybet Net Systems",Label.CENTER); lbl_4 = new Label("Ramchandra Joshi& Smita Joshi - ramchandra_joshi@hotmail.com",Label.CENTER); but_ok = new Button("OK"); // Add() add(lbl_1); add(lbl_2); add(lbl_3); add(lbl_4); add(but_ok); // ActionListener but_ok.addActionListener(this); // setFont Color ai = new Color(255,255,200); lbl_1.setForeground(Color.red); lbl_3.setFont( new Font("Arial",Font.BOLD,12)); // InitialPosition setBounds(100,200,300,215); lbl_1.setBounds ( 0, 60 ,300,25); lbl_2.setBounds ( 0, 95 ,300,20); lbl_3.setBounds ( 0,115 ,300,20); lbl_4.setBounds ( 0,135 ,300,20); but_ok.setBounds (115,170 , 50,20); // focus this.requestFocus(); } //end of constructor public void actionPerformed(ActionEvent e) { if (e.getSource() == but_ok) { this.dispose(); } }// action performed public void paint(Graphics g) { g.drawImage(img,0,35,300,40,this); } // end of paint public static void main(String args[]) { } // end about } // end class