Java Code for Library Management System

3024 Words Dec 27th, 2012 13 Pages
import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; import javax.swing.JPopupMenu; import com.sun.java.swing.plaf.motif.MotifLookAndFeel;

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
…show more content…
olor.white); city = new JTextField(); city.setForeground(Color.black); city.setBackground(Color.white); padd = new JTextField(); padd.setForeground(Color.black); padd.setBackground(Color.white); id = new JTextField(); id.setForeground(Color.black); id.setBackground(Color.white); class1 = new JTextField(); class1.setForeground(Color.black); class1.setBackground(Color.white); shift = new JTextField(); shift.setForeground(Color.black); shift.setBackground(Color.white); progress = new JTextField(); progress.setForeground(Color.black); progress.setBackground(Color.white);

search = new JButton("Search",new ImageIcon("search.gif")); search.setForeground(Color.white); search.setBackground(Color.pink); save = new JButton("Save", new ImageIcon("Save.gif")); save.setForeground(Color.white); save.setBackground(Color.pink); delete = new JButton("Delete", new ImageIcon("remove.gif")); delete.setForeground(Color.white); delete.setBackground(Color.pink); exit = new JButton("Exit", new ImageIcon("exit.gif")); exit.setForeground(Color.white); exit.setBackground(Color.pink); update = new JButton("Update", new ImageIcon("update.gif")); update.setForeground(Color.white); update.setBackground(Color.pink);

search.setToolTipText("Search the record"); save.setToolTipText("Save the record"); delete.setToolTipText("Delete the record"); exit.setToolTipText("Exit from

More about Java Code for Library Management System