Clas 12 Java Project On Library Management System
Clas 12 Java Project On Library Management System
SCHOOL
SESSION 2023-2024
STUDENT NAME:___________________________________
CLASS :____________________________________________
ROLL NO._________________________________________
SUBMITTED TO :__________________________________
ACKNOWLEDGEMENT
I would like to express my greatest gratitude to the people who
helped and supported me throughout my project.
I am thankful to my parents and grateful to Mr. Aryan whose
valuable guidance has been the ones that helped me patch this
project and make it full proof success.
This application has an easy and simple design with buttons to add books, view books list,
edit the details, delete the book, clear the text fields and exit application. So take a seat,
pour a cup of coffee and start using Library management system.
REQUIREMENTS
Hardware Requirement for Java
system as follows:
● Windows 7 software
● A CD-ROM drive
Macintosh and UNIX all supports the Java application development. So you can download
any of the operating system on your personal computer. Here is the minimum requirement.
● Operating System
● Supported Database and library that supports the database connection with Java.
PROCEDURE
You must have java JDK installed on your system and we are using
Eclipse IDE to build this project, you can use either this or Netbeans IDE.
The first step will be to create a new project. Name it as you wish. In the
src folder create a library package. In that package, we will be creating
some files for different modules.
To connect the system with the database you will need to follow certain
steps.
Have Java JDK already installed and an IDE like Eclipse
Install MySQL on the system.
Download MySQL connector from here.
In Eclipse, under your project expand external libraries and right-
click, and select Open Library Settings. Select the libraries tab and
click on the + button. Browse your jar file downloaded from the
above step and click on it. This will add a dependency to your
project. The steps will differ if you are using a different IDE.
Source code
1. \\@codewithcurious.com
2. import javax.swing.*;
3. import java.awt.*;
4. import java.awt.event.*;
5. import java.util.*;
6. public class Library_management extends JFrame implements ActionListener {
7. private JLabel label1, label2, label3, label4, label5, label6, label7;
8. private JTextField textField1, textField2, textField3, textField4, textField5, textField6, textField7;
9. private JButton addButton, viewButton, editButton, deleteButton, clearButton,exitButton;
10. private JPanel panel;
11. private ArrayList<String[]> books = new ArrayList<String[]>();
12. public Library_management() {
13. setTitle("Library Management System");
14. setSize(600, 300);
15. setDefaultCloseOperation(EXIT_ON_CLOSE);
36. addButton.addActionListener(this);
37. viewButton.addActionListener(this);
38. editButton.addActionListener(this);
39. deleteButton.addActionListener(this);
40. clearButton.addActionListener(this);
41. exitButton.addActionListener(this);
42. panel = new JPanel(new GridLayout(10,2));
43. panel.add(label1);
44. panel.add(textField1);
45. panel.add(label2);
46. panel.add(textField2);
47. panel.add(label3);
48. panel.add(textField3);
49. panel.add(label4);
50. panel.add(textField4);
51. panel.add(label5);
52. panel.add(textField5);
53. panel.add(label6);
54. panel.add(textField6);
55. panel.add(label7);
56. panel.add(textField7);
57. panel.add(addButton);
58. panel.add(viewButton);
59. panel.add(editButton);
60. panel.add(deleteButton);
61. panel.add(clearButton);
62. panel.add(exitButton);
63. add(panel);
64. setVisible(true);
65. }
CONCLUSION
In this project, we developed a GUI-based project, a Library
Management System Project in Java and MySQL or in other words book library
management system code in java. The users are able to perform the
operations such as Login, View Categories, Book details, Author details, Book
issue, and Book return.
BIBLOGRAPHY