public class ProjectLibrary extends JFrame implements ActionListener
{
JTextField id,phno,name,add,city,padd,eadd,class1,shift,progress,date; JTextField bookTF,authorTF,priceTF,bcodeTF; JTextField cdcodeTF,cdtitleTF,cdisbnTF,cdeditionTF,cdpubTF; Container c; JButton search,save,delete,exit,update; JButton searBook,saveNow,update1; JButton cdsearch,cdsave,cddelete,cdexit,cdupdate; JLabel cdlogo,cdcode,cdtitle,cdisbn,cdedit,cdpub; JOptionPane jp = new JOptionPane(); JMenuBar menuBar,menuBar1; JMenu menu1,menu2; JMenuItem menuItemN,menuItemB,menuItemC,menuItemH,menuItemA,menuItemE; Cursor cur;
public ProjectLibrary() { super("Library Record System"); c = getContentPane(); c.setBackground(new Color(14,58,119)); c.setLayout(null); setBounds(0,0,850,590); setFont(new Font("verdana",3,14)); cur = new Cursor(Cursor.CROSSHAIR_CURSOR); setCursor(cur); ImageIcon coll = new ImageIcon("collicon.gif"); JLabel LogoColl = new JLabel(coll); menuBar = new JMenuBar(); menu1 = new JMenu("Library"); menu1.setBackground(Color.white); menu1.setMnemonic('L'); menu2 = new JMenu("Help"); menu2.setMnemonic('H'); menu2.setBackground(Color.white);
menuItemN = new JMenuItem("New",new ImageIcon("NEW.GIF")); menuItemN.setBackground(Color.white); menuItemN.setMnemonic('N'); menuItemB = new JMenuItem("Books",new ImageIcon("b.gif")); menuItemB.setBackground(Color.white); menuItemB.setMnemonic('B'); menuItemC = new JMenuItem("CD's",new ImageIcon("c.gif")); menuItemC.setBackground(Color.white); menuItemC.setMnemonic('C'); menuItemE = new JMenuItem("Exit",new ImageIcon("Exit.PNG")); menuItemE.setBackground(Color.white); menuItemE.setMnemonic('E'); menuItemH = new JMenuItem("Help library",new