Anda di halaman 1dari 40

ACKNOWLEDGEMENT

Teach a student a lesson and he will forget it in a day but teach him how to learn and he will continue learning for the rest of his life. Such was the inspiring and the motivational relationship between us and our project guide Prof..Shweta B.Barshe.We thank him for his guidance, sincere support and constant encouragement throughout this project. We feel very happy in submitting this project titled Library Monitoring System which is an integral part of termination of our course. We take the opportunity to express our profound gratitude to the management of our College for giving us the opportunities and facilities to accomplish our project work. In the completion of our project we are thankful to our project guide Prof. Shweta B.Barshe our co-guide and the Head of Department who offered us genuine guidance, sincere, valuable suggestions and continuous encouragement along with improvisation throughout the project. Without his inspiration and support we would not have assimilated so much and the completion of this project would have been difficult task. We also express our thanks to our principal and the management for providing us all the facilities for completion of our project work. Last but not the least we would like to thank our teaching staff of our department and the lab assistants who directly or indirectly helped in completion of our project.

MAHTO GAJENDRA KUMAR R. P. KUKREJA HEMANT KUMAR S. KHADEKAR SURAJ KENI PRACHI

TABLE OF CONTENTS
SR. NO. 1. TOPIC PAGE NO.

INTRODUCTION TO PROJECT Project Schedule.

2.

PROJECT OVERVIEW Introduction. Hardware & Software Specification. Problem Statement & Flowchart. Database Design. Validation Rules. Queries Used. Outline Of Project. Suggestion For Future Work.

3.

Conclusion. PROJECT IMPLEMENTATION Program Coading & Execution. Appendix. Bibliography.

INDEX
SR. NO. 1. 2. 3. TOPIC INTRODUCTION TO PROJECT PROJECT OVERVIEW PROJECT IMPLEMENTATION PAGE NO.

INTRODUCTION
In this highly competitive world where everything is going for computerization, information accessing has become quite easier comfortable and convenient. Nobody is bothered of maintenance of records by manual procedure. Everybody wants everything to be soft for its smooth Utilization. Of course it will be much preferable to carry a floppy instead of the heavy bulky books. At the same time it is much easy to store, update and manipulate the soft copy. Hence keeping all these factors in mind our group viz; Gajendra , Hemant , Suraj and Prachi have undertaken the project to prepare a full-fledged
computerized and highly reliable Library Monitoring System.

NEED
The manual system of Library monitoring is no doubt a full proof one. But with respect to time, security, accuracy and storage (bulk storage) it must have a better reliable database system for information storage. The manual is a time consuming one and requires much people to involve in it. All the same scattering of the book details sheets on the tables on the other hand diminishes the overall outlook of the institution. So let us elaborate the requirement of the computerized Library Monitoring System to be full fledged , enthusiastic and what we must opt for to make the system one of the best.

PROBLEM STATEMENT
To develop a reliable Libarry Monitoring System for maintaining the details of the books of Library of the college

Database design: As we mentioned earlier in Hardware & Software specification section, we are using MS-Access as the backend database server for our project. Our database name is ams.mdb which represents Library Monitoring Systems database. The database have been prepared inMS_Access version 7.0 through the ODBC and JDBC Drivers of Java . The procedure to create and link a database using JDBC is as follows: Open a Database Running SQL commands in a statement Processing the returned results Creating DSN using ODBC is as follows: Double click ODBC icon Click on Administrator Window Add Button Select MS Access Driver Click Finish Button Enter the DSN name Select database Click Ok.
If you choose ODBC, a dialog box is displayed that lists the parameters needed to open an ODBC data source. If the source you select does not exist, it can be created from this dialog using the Register command

Creates a new database for the database type selected from the menu. If you choose Microsoft Access ODBC Creates a Microsoft Access (version 2.0 or 7.0) .mdb New ODBC data source.

Select the version you want to use for your database Now you are totally in a database environment and can work as you would in any database application.

Form Items
Add Adds a new record to the current recordset. Edit Places the current record in edit mode. Delete Deletes the current record. Close Closes the current record. Sort Sorts the current recordset. Filter Places a filter on the current recordset. Move Displays the Move dialog box where you can indicate how many rows you want to move the record forward or backward in the recordset. Find

Displays the Find dialog box where you can enter information to perform a search on the current recordset

Feasibility Study
System Analysis:
System analysis is conducted with following objectives in mind. 1. Identify the users need. 2. Evaluate the system concept for feasibility. 3. Perform the economic and technical analysis. 4. Establish cost and schedule constraints. 5. Create a system definition that performs the foundation for all subsequent engineering works.

Identification of Need:
The first step of the system analysis process involves the identification of need. The analyst meets the user and the end user. Once over goals are identified, the analyst moves on to an evaluation of supplementary information. In earlier days before the system was computerized, each and every process was carried manually, which is very tedious and would create lots of complication and problems. The need for computerizing is for the convenience of the customer. Many a times in manual work, there is no proper record so either the person has to search for id or get a new one done. Information gathered during the needs identification steps are specific in a system concept document is sometimes prepared by the users before meeting with the analyst .

Feasibility Study:
A feasibility study is not warranted for this system in which economic justification is obvious, technical risk is low, few legal problems are expected and no reasonable alternatives exists. However, if any of the preceding condition fails, a study of that should be conducted.

All projects are feasible - given unlimited time! Unfortunately, the development of the computer-based system or product is more liked plagued by a scarcity of resources and difficult delivery dates. It is both necessary and prudent to evaluate the feasibility of project at the earliest possible time, Feasibility and risks analysis are related in many ways. If project risk is great, the feasibility of providing quality software is reduced. The feasibility study may be documented as separate report to upper management and included as an appendix to the system specification.

Economic Analysis:
An assessment of the economic justification for a computer based system project is costbenefit. Direct cost: The hardware cost was not as much, but the pc required for developing the software was the main hurdle which was solved due to the guidance of college lab. The other hardware cost was nothing but the disk cost required for storing the project which was near about a thousand or a two. Tangible cost: Time required for completion of this project is around a month or a two. Cost benefit analysis is complicated by criteria that vary with characteristics of the system to be developed, the relative size of the project and the expected return on investment derived as a part of a offices strategic plan.

Technical Analysis:
Technically this project is very sophisticated and has a very faster execution comparatively used in project. During technical analysis the analyst evaluates the technical merits of the system concept, at the same time collecting additional information about performance, reliability and maintainability. In some cases, this step also includes the limited amount of research and design. Technical analysis begins with an assessment of the technical ability of proposed system. The tools available for technical analysis are derived from mathematical modeling optimization techniques, probability and statistics, queering theory and control theory. It is important to note, however, that analytical evaluation is not always possible.

Behavioral Analysis:
As the project is very simple, it is very easy for our project to implement with ease and convenience. Behavioral analysis is an operational principal for all requirement analysis methods.

The state- transition diagram represents the behavior of a system by depicting its status and the events that cause the system to change the state.

ANALYSIS
System Analysis and Design are the application of the systems approach to problem solving, generally using computers. To reconstruct a system, the analyst must consider its elementsoutputs and inputs, processors, control, feedback and environment.

Information Gathering:
Information gathering is an art and science. The approach and manner in which information gathered required persons with sensitivity, commonsense and knowledge of where and when to gather and what channels to use in securing information. Additionally, the methodology and tools for information gathering require training and experience that the analyst is expected to have. This means that information gathering is neither easy nor routine. Much preparation, experience and training is required.

Analysis and Design Tools:


Following are the analysis and design tools: Flow Charts. Decision Tree. Decision Table. Structured English. Data flow diagram. Data Dictionary.

STRUCTURED ENGLISH
IF Book Name = THEN Select the Book Name ELSE IF Book No = THEN Select the Book No. END IF IF Book No =! Rs.bookno THEN Records are not present. END IF

DATABASE DESIGN
Data Flow Diagram (DFD)
The DFD are graphical representation of data movements, processes used in support of information system. As in every other operating system, data flow diagram the topmost management, through the department heads, through its employees to the bottom level laborers. Representation of this flow of data through graphical form, gives a clear and clean idea of the functioning of the system.

DATA FLOW DIAGRAM FOR LIBRARY MASTER

Library Master

User

Displa y

Books Information

DATA FLOW DIAGRAM FOR USERS DETAILS

User Details

User

Displa y

User Information

Data Dictionary
DATA STRUCTURES: TABLE:-BOOK FIELD NAME
BOOKNO BOOK NAME RACK NO PUBLISHER EDITION ISSUE DATE RET DATE BOOK LOST DATE COST

DATATYPE
NUMBER TEXT NUMBER TEXT TEXT DATE DATE DATE NUMBER

TABLE: STUDENT FIELD NAME


BOOK NO. NAME

DATATYPE
NUMBER TEXT

GR NO. LIB ID NO.

TEXT TEXT

TABLE:-PASSWORD FIELD NAME


USER NAME PASSWORD

DATATYPE
TEXT TEXT

TABLE: SUBJECT FIELD NAME


SUBJECT NAME SUBJECT CODE

DATATYPE
TEXT TEXT

TABLE: AUTHOR FIELD NAME DATATYPE

BOOK NO AUTHOR NAME AUTHOR ADD C

NUMBER TEXT TEXT

PROJECT OUTLINE
The project outline mainly consists of the front-end and the back-end applications, used for developing the project. To develop a user friendly project the front-end and back-end play an important role. Library Monitoring System is developed on Microsoft Windows 2000 NT Platform using Pentium IV Processor. It is developed using JAVA -Access Combination. Java 2 is used as a front-end Application and Microsoft Access v7.0 is used as the back-end Database. All the coding is written and compiled in Java 2.

MAIN MDI FORM CODE:


import java.text.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class library extends Frame { MenuBar mainMenu; Menu library; MenuItem book,user,quit; Menu employee; MenuItem faculty,student; Menu help; MenuItem about,version; String ss=""; public library() { //rj = new ImageIcon("typer.JPEG"); addWindowListener(new WindowHandler()); setTitle("WELCOME TO LIBRARY"); setBackground(Color.gray); setLayout(new FlowLayout()); setLayout(null); mainMenu = new MenuBar(); setMenuBar(mainMenu); library = new Menu("LIBRARY"); book = new MenuItem("Book_Details"); //author = new MenuItem("Author_Details"); user = new MenuItem("User_Details");

quit = new MenuItem("Exit"); library.add(book); //library.add(author); library.add(user); library.add(quit); mainMenu.add(library); employee = new Menu("EMPLOYEE"); faculty =new MenuItem("Faculty_Details"); student = new MenuItem("Student_Details"); employee.add(faculty); employee.add(student); mainMenu.add(employee); help = new Menu("HELP"); about =new MenuItem("About"); version = new MenuItem("Version"); help.add(about); help.add(version); mainMenu.add(help); book.addActionListener(new bookc()); user.addActionListener(new userc()); //author.addActionListener(new authorc()); about.addActionListener(new aboutc()); version.addActionListener(new versionc()); quit.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); } } ); } class WindowHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { System.exit(0); } } public class bookc extends Frame implements ActionListener { public void actionPerformed(ActionEvent e) { Frame frm = new book(); frm.setBounds(1,1,800,600); frm.show(); } }

public class userc extends Frame implements ActionListener { public void actionPerformed(ActionEvent e) { Frame frm1 = new user(); frm1.setBounds(1,1,800,600); frm1.show(); } } public class versionc extends Frame implements ActionListener { public void actionPerformed(ActionEvent e) { Frame frm1 = new version(); //frm1.setBounds(1,1,800,600); frm1.setSize(450,280); frm1.setLocation(180,120); Font ft = new Font ("Times Roman",Font.BOLD + Font.ITALIC,18); frm1.setFont(ft); frm1.show(); } } public class aboutc extends Frame implements ActionListener { public void actionPerformed(ActionEvent e) { Frame frm1 = new about(); frm1.setBounds(1,1,800,600); frm1.show(); } } public static void main(String arg[]) { Frame frm = new library(); frm.setBounds(1,1,800,600); frm.show(); } } /** public class library { public static void main(String arg[]) { Frame frm = new library(); frm.setBounds(1,1,800,600); frm.show(); } }

*/

BOOK INFORMATION FORM


import java.text.*; import java.net.*; import java.sql.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class book extends Frame { String namen; char key='A'; JDesktopPane jdesktoppane1 = new JDesktopPane(); Button bsok; Button bscancel; Button bsexit; Button bselect; TextField name; TextField bookno; TextField opbookno; TextField publisher; TextField rackno; TextField studentname; TextField rollno; TextField author; TextField pubdate; TextField edition; TextField subject; TextField vv;

TextField issudate; TextField retdate; TextField cost; TextField blostdate; TextField stu_lib_id; TextField facname; TextField facid; Label namel; Label booknol; Label authorl; Label racknol; Label vvl; Label publisherl; Label pubdatel; Label dpubdatel; Label subjectl; Label editionl; Label costl; Label blostdatel; Label dblostdatel; Label issudatel; Label dissudatel; Label retdatel; Label dretdatel; Label studentnamel; Label rollnol; Label stu_lib_idl; Label facnamel; Label facidl; Label selecbooknol; Label selecnamel; Label doubbooknol; Label doubnamel; Button binsert; Button bdisplay; Button bupdate; Button bchange; Button bdelete; Button bcancel; Button bexit; List blist1; List blist2; public book() { bsok = new Button("OK"); bscancel = new Button("CANCEL"); bsexit = new Button("EXIT"); bsok.setSize(100,40);

bsok.setLocation(280,500); bsok.setBackground(Color.cyan); bsok.setForeground(Color.blue); bscancel.setSize(100,40); bscancel.setLocation(390,500); bscancel.setBackground(Color.cyan); bscancel.setForeground(Color.blue); bsexit.setSize(100,40); bsexit.setLocation(510,500); bsexit.setBackground(Color.cyan); bsexit.setForeground(Color.blue); blist1 = new List(); blist1.setSize(180,200); blist1.setLocation(190,205); blist2 = new List(); blist2.setSize(180,200); blist2.setLocation(490,205); binsert = new Button("INSERT"); bdisplay = new Button("DISPLAY"); bselect = new Button("SELECT BOOK NAME"); bchange = new Button("CHANGE"); bupdate = new Button("UPDATE"); bdelete = new Button("DELETE"); bcancel = new Button("CANCEL"); bexit = new Button("EXIT"); // length,breath binsert.setSize(80,30); //from left window,top binsert.setLocation(150,515); //bselect.setSize(180,25); //bselect.setLocation(250,44); bselect.setSize(25,30); bselect.setLocation(292,70); bselect.setForeground(Color.blue); bdisplay.setSize(80,30); bdisplay.setLocation(240,515); bupdate.setSize(80,30); bupdate.setLocation(330,515); bchange.setSize(80,30); bchange.setLocation(330,515); bdelete.setSize(80,30); bdelete.setLocation(420,515); bcancel.setSize(80,30); bcancel.setLocation(510,515); bexit.setSize(80,30); bexit.setLocation(600,515); addWindowListener(new WindowHandler()); selecbooknol = new Label("Select Book No.");

selecnamel = new Label("Select Book_Name "); doubbooknol = new Label("Double Click"); doubnamel = new Label("Double Click"); selecbooknol.setSize(110,30); selecbooknol.setLocation(380,205); //selecbooknol.setForeground(Color.blue); selecnamel.setSize(120,20); selecnamel.setLocation(50,205); //selecnamel.setForeground(Color.blue); doubbooknol.setSize(180,20); doubbooknol.setLocation(490,184); doubbooknol.setForeground(Color.blue); doubnamel.setSize(180,20); doubnamel.setLocation(190,184); doubnamel.setForeground(Color.blue); namel = new Label("Book_Name "); namel.setSize(80,30); namel.setLocation(20,70); booknol = new Label("BookNo. "); booknol.setSize(80,30); booknol.setLocation(20,110); authorl = new Label("Author_Name"); authorl.setSize(90,30); authorl.setLocation(20,150); racknol = new Label("Rack_No. "); racknol.setSize(80,30); racknol.setLocation(20,190); vvl = new Label("No_Copies "); vvl.setSize(80,30); vvl.setLocation(20,230); publisherl = new Label("Publisher:"); publisherl.setSize(80,30); publisherl.setLocation(20,285); pubdatel = new Label("Pub_Date "); pubdatel.setSize(80,30); pubdatel.setLocation(20,340); dpubdatel = new Label("YYYY-MM-DD"); dpubdatel.setSize(80,10); dpubdatel.setLocation(110,373); subjectl = new Label("Subject_Name:"); subjectl.setSize(100,30); subjectl.setLocation(230,110); editionl = new Label("Edition "); editionl.setSize(80,30); editionl.setLocation(230,150); costl = new Label("Book_Cost "); costl.setSize(80,30); costl.setLocation(230,190);

blostdatel = new Label("Lost_Date "); blostdatel.setSize(80,30); blostdatel.setLocation(230,230); //blostdatel.setLocation(230,230); dblostdatel = new Label("YYYY-MM-DD"); dblostdatel.setSize(80,10); dblostdatel.setLocation(330,263); issudatel = new Label("Issue_Date "); issudatel.setSize(80,30); issudatel.setLocation(230,285); dissudatel = new Label("YYYY-MM-DD"); dissudatel.setSize(80,10); dissudatel.setLocation(330,318); //issudatel.setLocation(230,270); retdatel = new Label("Return_Date "); retdatel.setSize(80,30); retdatel.setLocation(230,340); dretdatel = new Label("YYYY-MM-DD"); dretdatel.setSize(80,10); dretdatel.setLocation(330,373); //retdatel.setLocation(230,310); studentnamel = new Label("Student_Name "); studentnamel.setSize(100,30); studentnamel.setLocation(505,110); rollnol = new Label("G.R._No."); rollnol.setSize(100,30); rollnol.setLocation(505,150); stu_lib_idl = new Label("Library_Card_No. "); stu_lib_idl.setSize(115,30); stu_lib_idl.setLocation(500,190); facnamel = new Label("Faculty_Name"); facnamel.setSize(100,30); facnamel.setLocation(505,230); facidl = new Label("Faculty_Id_No. "); facidl.setSize(100,30); facidl.setLocation(500,285); setLayout(null); name = new TextField(); name.setSize(180,30); name.setLocation(110,70); bookno = new TextField(); bookno.setSize(80,30); bookno.setLocation(110,110); author = new TextField(); author.setSize(80,30); author.setLocation(110,150); rackno = new TextField(); rackno.setSize(80,30);

rackno.setLocation(110,190); vv = new TextField(); vv.setSize(80,30); vv.setLocation(110,230); publisher = new TextField(); publisher.setSize(80,30); publisher.setLocation(110,285); pubdate = new TextField(); pubdate.setSize(75,30); pubdate.setLocation(110,340); subject = new TextField(); subject.setSize(160,30); subject.setLocation(330,110); edition = new TextField(); edition.setSize(80,30); edition.setLocation(330,150); cost = new TextField(); cost.setSize(80,30); cost.setLocation(330,190); blostdate = new TextField(); blostdate.setSize(75,30); blostdate.setLocation(330,230); //blostdate.setLocation(330,230); issudate = new TextField(); issudate.setSize(75,30); issudate.setLocation(330,285); //issudate.setLocation(330,270); retdate = new TextField(); retdate.setSize(75,30); retdate.setLocation(330,340); //retdate.setLocation(330,310); studentname = new TextField(); studentname.setSize(175,30); studentname.setLocation(610,110); rollno = new TextField(); rollno.setSize(80,30); rollno.setLocation(610,150); stu_lib_id = new TextField(); stu_lib_id.setSize(80,30); stu_lib_id.setLocation(610,190); facname = new TextField(); facname.setSize(80,30); facname.setLocation(610,230); facid = new TextField(); facid.setSize(80,30); facid.setLocation(610,285); opbookno = new TextField(); opbookno.setSize(80,30);

opbookno.setLocation(450,49); add(bselect); add(name); add(bookno); add(author); add(rackno); add(vv); add(publisher); add(pubdate); add(subject); add(edition); add(cost); add(blostdate); add(issudate); add(retdate); add(studentname); add(rollno); add(stu_lib_id); add(facname); add(facid); add(selecnamel); add(selecbooknol); add(doubnamel); add(doubbooknol); add(namel); add(booknol); add(authorl); add(racknol); add(vvl); add(publisherl); add(pubdatel); add(subjectl); add(editionl); add(costl); add(blostdatel); add(issudatel); add(retdatel); add(studentnamel); add(rollnol); add(stu_lib_idl); add(facnamel); add(facidl); add(blist1); add(blist2); add(binsert); add(bdisplay); add(bupdate); add(bchange);

add(bdelete); add(bcancel); add(bexit); add(bsok); add(bscancel); add(bsexit); add(opbookno); add(dblostdatel); add(dissudatel); add(dretdatel); add(dpubdatel); add(jdesktoppane1); vv.setEnabled(false); Font ft = new Font ("Times Roman",Font.BOLD,16); Font ft1 = new Font ("Times Roman",Font.BOLD,13); vv.setFont(ft); bselect.setFont(ft); binsert.setFont(ft); bdisplay.setFont(ft); bupdate.setFont(ft); bchange.setFont(ft); bdelete.setFont(ft); bcancel.setFont(ft); bexit.setFont(ft); bsok.setFont(ft); bscancel.setFont(ft); bsexit.setFont(ft); namel.setFont(ft1); selecnamel.setFont(ft1); selecbooknol.setFont(ft1); doubnamel.setFont(ft); doubbooknol.setFont(ft); booknol.setFont(ft1); authorl.setFont(ft1); racknol.setFont(ft1); vvl.setFont(ft1); publisherl.setFont(ft1); pubdatel.setFont(ft1); subjectl.setFont(ft1); editionl.setFont(ft1); costl.setFont(ft1); blostdatel.setFont(ft1); issudatel.setFont(ft1); retdatel.setFont(ft1); studentnamel.setFont(ft1); rollnol.setFont(ft1); stu_lib_idl.setFont(ft1); facnamel.setFont(ft1);

facidl.setFont(ft1); dblostdatel.setFont(ft1); dissudatel.setFont(ft1); dretdatel.setFont(ft1); dpubdatel.setFont(ft1); selecbooknol.setVisible(false); selecnamel.setVisible(false); doubbooknol.setVisible(false); doubnamel.setVisible(false); bsok.setVisible(false); bscancel.setVisible(false); bsexit.setVisible(false); blist1.setVisible(false); blist2.setVisible(false); opbookno.setVisible(false); //total.setBounds(350,200,100,40); setTitle("BOOK_DETAILS"); setBackground(Color.red); //setForeground(Color.black); //setLayout(new FlowLayout()); setBounds(1,1,800,600); name.setText(null); bookno.setText(null); publisher.setText(null); rackno.setText(null); studentname.setText(null); rollno.setText(null); opbookno.setText(null); } public static void main(String arg[]) { Frame frm = new book(); frm.show(); } class blank extends Frame { void blan() { name.setText(null); bookno.setText(null); publisher.setText(null); rackno.setText(null); studentname.setText(null); rollno.setText(null); opbookno.setText(null); author.setText(null); vv.setText(null); pubdate.setText(null);

subject.setText(null); edition.setText(null); cost.setText(null); blostdate.setText(null); issudate.setText(null); retdate.setText(null); stu_lib_id.setText(null); facname.setText(null); facid.setText(null); } void blan1() { publisher.setText(null); rackno.setText(null); studentname.setText(null); rollno.setText(null); opbookno.setText(null); } void flt() { rackno.setVisible(false); publisher.setVisible(false); author.setVisible(false); vv.setVisible(false); pubdate.setVisible(false); subject.setVisible(false); edition.setVisible(false); cost.setVisible(false); blostdate.setVisible(false); //issudate.setVisible(false); //retdate.setVisible(false); studentname.setVisible(false); rollno.setVisible(false); stu_lib_id.setVisible(false); facname.setVisible(false); facid.setVisible(false); racknol.setVisible(false); publisherl.setVisible(false); authorl.setVisible(false); vvl.setVisible(false); pubdatel.setVisible(false); subjectl.setVisible(false); editionl.setVisible(false); costl.setVisible(false); blostdatel.setVisible(false); //issudatel.setVisible(false); //retdatel.setVisible(false);

studentnamel.setVisible(false); rollnol.setVisible(false); stu_lib_idl.setVisible(false); facnamel.setVisible(false); facidl.setVisible(false); binsert.setVisible(false); bdisplay.setVisible(false); bupdate.setVisible(false); bchange.setVisible(false); bdelete.setVisible(false); bcancel.setVisible(false); bexit.setVisible(false); dblostdatel.setVisible(false); dissudatel.setVisible(false); dretdatel.setVisible(false); dpubdatel.setVisible(false); } void tlt() { rackno.setVisible(true); publisher.setVisible(true); author.setVisible(true); vv.setVisible(true); pubdate.setVisible(true); subject.setVisible(true); edition.setVisible(true); cost.setVisible(true); blostdate.setVisible(true); //issudate.setVisible(true); //retdate.setVisible(true); studentname.setVisible(true); rollno.setVisible(true); stu_lib_id.setVisible(true); facname.setVisible(true); facid.setVisible(true); racknol.setVisible(true); publisherl.setVisible(true); authorl.setVisible(true); vvl.setVisible(true); pubdatel.setVisible(true); subjectl.setVisible(true); editionl.setVisible(true); costl.setVisible(true); blostdatel.setVisible(true); //issudatel.setVisible(true); //retdatel.setVisible(true); studentnamel.setVisible(true); rollnol.setVisible(true);

stu_lib_idl.setVisible(true); facnamel.setVisible(true); facidl.setVisible(true); binsert.setVisible(true); bdisplay.setVisible(true); bupdate.setVisible(true); bchange.setVisible(true); bdelete.setVisible(true); bcancel.setVisible(true); bexit.setVisible(true); dblostdatel.setVisible(true); dissudatel.setVisible(true); dretdatel.setVisible(true); dpubdatel.setVisible(true); } } }

USER DETAILS FORM CODE:


import java.text.*; import java.net.*; import java.sql.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class user extends Frame { TextField puse; TextField ppass; Button plogin1; Button plogout1; Label pusernamel; Label ppasswordl; //DesktopPane desktoppane = new DesktopPane();

public user() { plogin1 = new Button("ADD"); plogin1.setSize(90,35); plogin1.setLocation(150,210); //pok.setBackground(Color.cyan); //pok.setForeground(Color.blue); plogout1 = new Button("DELETE"); plogout1.setSize(90,35); plogout1.setLocation(250,210); pusernamel = new Label("UserName"); pusernamel.setSize(90,30); pusernamel.setLocation(45,110); pusernamel.setForeground(Color.blue); ppasswordl = new Label("Enter Password:"); ppasswordl.setSize(90,30); ppasswordl.setLocation(45,145); ppasswordl.setForeground(Color.blue); puse = new TextField(); puse.setSize(180,30); puse.setLocation(160,110); ppass = new TextField(); ppass.setSize(180,30); ppass.setLocation(160,145); setLayout(null); //setLayout(new FlowLayout()); //setBounds(1,1,400,300); setLayout(null); add(pusernamel); add(ppasswordl); add(puse); add(ppass); add(plogin1); add(plogout1); setTitle("USER_DETAILS"); setBackground(Color.red); setBounds(1,1,800,600); addWindowListener(new WindowHandler()); plogin1.addActionListener(new ploginc1()); plogout1.addActionListener(new plogoutc1()); } class WindowHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { //System.exit(0); Frame frm1 = new library(); frm1.setBounds(1,1,800,600);

frm1.setVisible(true); Frame frm = new user(); frm.setBounds(1,1,800,600); frm.setVisible(false); } } public class plogoutc1 implements ActionListener { public void actionPerformed(ActionEvent e) { }} public class ploginc1 extends Frame implements ActionListener { public void actionPerformed(ActionEvent e) { }} public static void main(String arg[]) { Frame frm = new user(); frm.setBounds(1,1,800,600); frm.show(); } }

HELP FORM CODE:


import java.text.*; import java.net.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class about extends Frame { TextField name; Button aok; Button aback; Label quesl; Label ansl; List qlist; List alist; public about()

{ name = new TextField(); name.setSize(20,30); name.setLocation(50,40); aok = new Button("Search"); aback = new Button("Back"); setLayout(null); aok.setSize(80,30); aok.setLocation(510,515); quesl = new Label("Select Question"); ansl = new Label("Answer: "); aback.setSize(80,30); aback.setLocation(600,515); ansl.setSize(90,30); ansl.setLocation(300,180); quesl.setSize(90,30); quesl.setLocation(100,180); qlist = new List(); qlist.setSize(180,200); qlist.setLocation(100,215); alist = new List(); alist.setSize(280,280); alist.setLocation(300,215); addWindowListener(new WindowHandler()); add(quesl); add(ansl); add(qlist); add(alist); add(aok); add(aback); add(name); Font ft5 = new Font ("Times Roman",Font.BOLD,16); quesl.setFont(ft5); ansl.setFont(ft5); Font ft6 = new Font ("Times Roman",Font.BOLD,13); qlist.setFont(ft6); qlist.setForeground(Color.red); Font ft7 = new Font ("Times Roman",Font.ITALIC,13); alist.setFont(ft7); alist.setForeground(Color.blue); name.setVisible(false); qlist.add("Enter the details of books?"); qlist.add("Know the details of books?"); //setLayout(new FlowLayout()); setTitle("HELP"); setBackground(Color.red); qlist.addItemListener(new qlistc()); aok.addActionListener(new aokc());

aback.addActionListener(new abackc()); } public void paint (Graphics g) { Font ft = new Font ("Times Roman",Font.BOLD,40); g.setFont(ft); g.drawString(" Help Required ? ",200,100); } class WindowHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { Frame frm1 = new library(); frm1.setBounds(1,1,800,600); frm1.setVisible(true); Frame frm = new about(); frm.setBounds(1,1,800,600); frm.setVisible(false); } } public class qlistc implements ItemListener{ public void itemStateChanged(ItemEvent e) { alist.removeAll(); if (e.getItemSelectable() == qlist) { String ans; name.setText(((List)e.getItemSelectable()).getSelectedItem()); } } } public class aokc implements ActionListener { public void actionPerformed(ActionEvent e) { aokc bd = new aokc(); if (name.getText().equals("Enter the details of books?")) { alist.add("Select the Book Details menubar and enter the the book details"); } else if(name.getText().equals("Know the details of books?")) { alist.add("Select the Book Details menubar and use display button to see records of books"); } } } public class abackc implements ActionListener

{ public void actionPerformed(ActionEvent e) { Frame frm1 = new library(); frm1.setBounds(1,1,800,600); frm1.setVisible(true); Frame frm = new about(); frm.setBounds(1,1,800,600); frm.setVisible(false); } } public static void main(String arg[]) { Frame frm = new about(); frm.setBounds(1,1,800,600); frm.show(); } }

VERSION FORM CODE :


import java.text.*; import java.net.*; import java.sql.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class version extends Frame { public version() { setTitle("Version"); setBackground(Color.red); setForeground(Color.pink); addWindowListener(new WindowHandler()); }

public void paint (Graphics g) { g.drawString(" version 1.0",150,260); g.drawString(" Welcome to Library ",75,60); g.drawString("*Saraswati College Of Engineering*",75,80); g.drawString("Developed By:",10,130); g.drawString("Mahato Gajendra K.R.P.",160,140); g.drawString("Prachi Keni ",160,160); g.drawString("Suraj Khadekar ",160,180); g.drawString("Hemant Kukreja ",160,200); //g.drawString("Guided By:",10,220); } class WindowHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { Frame frm1 = new library(); frm1.setBounds(1,1,800,600); frm1.setVisible(true); Frame frm = new version(); frm.setSize(450,280); frm.setLocation(180,120); //frm.setBounds(1,1,800,600); frm.setVisible(false); } } public static void main(String arg[]) { Frame frm = new version(); //length rectangle to breath frm.setSize(450,280); // from left and from top frm.setLocation(180,120); //frm.setBounds(1,1,800,600); Font ft = new Font ("Times Roman",Font.BOLD + Font.ITALIC,18); frm.setFont(ft); frm.show(); } }

Future Suggestions:-

The project have been developed with the consideration of medium capital level college.The same project can be superimposed to a much reliable and durable software which would work automatically without any humaninterference. Hence the future suggestions of this software is the introduction of the bar code which would be a unique identifier for a particular book.. Bar code is used to maintain book details at different levels. Since it will cost high for its reliability such type of software must be thought of only if there is a robust capital system for the ad hoc maintenance of these systems.

BIBLIOGRAPHY
NAME OF THE BOOK
COMPLETE REFERENCE OF JAVA JAVA 2 JAVA 2 PROJECT Microsoft Access

AUTHOR
C.Xavier

Anda mungkin juga menyukai