Preview

Java Code for Library Management System

Powerful Essays
Open Document
Open Document
3009 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Code for Library Management System
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 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

You May Also Find These Documents Helpful

  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    class Link { public int iData; // data item public double dData; // data item public Link next; // next link in list // ------------------------------------------------------------public Link(int id, double dd) // constructor { iData = id; // initialize data dData = dd; // ('next' is automatically } // set to null) // ------------------------------------------------------------public void displayLink() // display ourself { System.out.print("{" + iData + ", " + dData + "} "); } } // end class Link //////////////////////////////////////////////////////////////// class LinkList { private Link first; // ref to first link on list // ------------------------------------------------------------public LinkList() // constructor { first = null; // no links on list yet } // ------------------------------------------------------------public boolean isEmpty() // true if list is empty { return…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Mis 302 Flowchart

    • 262 Words
    • 2 Pages

    After completing your program, submit the Java Code (copy code into notepad before uploading it). The file must be titled HW2-FlowChar/Program. Don’t forget to add your name…

    • 262 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    As the user is deciding which they would like to select an international currency type. When the user enters a number between 5 and 26 corresponding with a currency type, then the program is set to false. If 26 is selected the program displays “Quitting Currency Conversion.” But if the user does not enter a number between 5 and 26 the program displays “Error 4: Invalid Menu Selection” and the set it true.…

    • 1052 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    //constructor public RetailCalculator { super("Retail Calculator"); setLayout(null); setSize(415, 440); setLocation(150, 100); //panels jPanel1 = new JPanel(); jPanel1.setBounds(0, 0, 300, 30); jPanel1.setLayout(new FlowLayout()); jPanel2 = new JPanel(); jPanel2.setBounds(0, 31, 300, 120); jPanel2.setLayout(new GridLayout(6, 2)); jPanel3 = new JPanel(); jPanel3.setBounds(0, 151, 400, 250); jPanel3.setLayout(new GridLayout(1, 1)); //title for pane lbTitle = new JLabel("Retail Calculator"); //label and textfield for employee name lbItemName = new JLabel("Item name: "); lbItemName.setHorizontalAlignment(SwingConstants.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    It 210 Final Project

    • 1033 Words
    • 5 Pages

    Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs.”…

    • 1033 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Files in required formats (menu is included and images are all .jpg, video is present and in .flv)…

    • 1214 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    code program

    • 317 Words
    • 2 Pages

    (Copy of source code) - Insert here a copy of your *.java source code text (copy and paste source code here, do not simply insert *.java files):…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Sheet Java Study Guide

    • 576 Words
    • 3 Pages

    What changes must be made to the program so it works for a rectangle 6.8 inches wide by 2.3 inches…

    • 576 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Library management system

    • 5722 Words
    • 23 Pages

    Library management system is an aspect or branch of information management system that keeps the records of both the library users, books in the library and the activities that is going on in the library, activities like borrowing books and returning books.…

    • 5722 Words
    • 23 Pages
    Powerful Essays
  • Good Essays

    1.5 All references from Section 1.4 have to be referred to in the text (using [number]…

    • 581 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Java App

    • 278 Words
    • 2 Pages

    import javax.swing. *; import java.awt. *; import java.awt.event. *; public class adsubprodquoRadButton extends JFrame implements ActionListener { private JButton answer, clr; private JRadioButton r1,r2,r3,r4; //private JCheckBox c1; private JTextField txt1,txt2; //private JLabel lbl1; public adsubprodquoRadButton() {//CONSTRUCTOR Container p = getContentPane(); JPanel jp = new JPanel(); //JPanel jp1 = new JPanel(); ButtonGroup bg = new ButtonGroup(); //ButtonGroup bg1 = new ButtonGroup(); p.add(jp);…

    • 278 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Note: This Machine Problem is compose of four problems .Just copy and paste your source code on a word document then print the screen shots after to show the output. Save your work on a rewritable CD. Submit your work with a long brown envelope.…

    • 1102 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    /* * 请完善这里的注释 */ package javafxgrouping; /** * * @author 孙平 094632220 */ public class StudentEntity { //从这里开始编写你的代码 private String id; private String name; private String className; public StudentEntity(){ } public StudentEntity(String aID, String aName, String className) { this.id = aID; this.name = aName; this.className =…

    • 1540 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Honda Mission & Vision

    • 630 Words
    • 3 Pages

    End Sub ……………………………… ……………………………………………….. Private Sub CmdShowFrom2_Click( ) From2.Show Unload Me End Sub ……………………………….…

    • 630 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    library system

    • 525 Words
    • 3 Pages

    Wireless communication is very common and widely applicable technique in communication field. In these field new techniques invented that is called RFID technique, in which object having RFID tags on them are being accessed in radio frequency region. Cryptography (method involves the both process “encryption” and “decryption”) is widely used in network system’s security. It is also the ancient method of encoding the original messages for transmission. On the other side The RFID technology recently has gained enormous attention in various field like in database maintenances(in the library management system), media, industry and as well as in network security. In the Radio frequency identification (RFID) use of an object (typically referred to as RFID tag) applied to or incorporated into a product, animal, or person (user) for the purpose of identification and tracking using radio waves. Each member has its unique id or RFID tag. However security and privacy pose…

    • 525 Words
    • 3 Pages
    Good Essays