0% found this document useful (0 votes)
38 views16 pages

AJP Microproject (Prachi) ..

This document contains a proposal and report for a library management system micro-project. The proposal outlines developing a Java program using Eclipse IDE to allow users to view book categories, details, authors and prices in a database. The report summarizes that the project aimed to use databases and GUI in Java programs and allow event handling. It developed a program that allows adding, removing and viewing book inventory. The actual code developed GUI components like buttons and lists to display and manage book data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views16 pages

AJP Microproject (Prachi) ..

This document contains a proposal and report for a library management system micro-project. The proposal outlines developing a Java program using Eclipse IDE to allow users to view book categories, details, authors and prices in a database. The report summarizes that the project aimed to use databases and GUI in Java programs and allow event handling. It developed a program that allows adding, removing and viewing book inventory. The actual code developed GUI components like buttons and lists to display and manage book data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Index

Sr. No.
Page No.
Contents.

Annexure I– Micro Project Proposal 1-4

1.Aims/Benefits of the Micro-Project 2

2. Course Outcome Addressed 2

1
3.Proposed Methodology 2-3

4. Action Plan 3

5. Resources Required 4

6. Name of student with roll no 4

Annexure II – Micro Project Report 5-11

1.Rationale 5

2.Aims/Benefits of the Micro-Project 5

2 3.Course Outcome Achieve 5

4. Literature Review 5-6

5.Actual Methodology Followed 6-14

15
6.Actual Resources Used

7. Skill developed / Learning out of this Micro-Project 15


8. Applications of this Micro-Project 15

Annexure I
Micro Project Proposal

LIBRARY MANGEMENT SYSTEM

1. Aims/Benefits of the Micro-Project:


1. Understand how to run the JDBC and Servlet programs.

2. To study about how to write JDBC and Servlet code in IDE eclipse.

3. Develop program to handle events in Java Programming.

2. Course Outcome Addressed:


1. Develop program using database.

2. Develop programs using GUI Framework.

3. Develop program to handle events in Java Programming.

3. Proposed Methodology:
In this project, we will build Book Management System Project in Java and Oracle with source
code. This project is great for those at an intermediate level in Java who want to advance their
coding skills. In this project, the users will be able to perform the following functionalities, View
Categories, Book details, Author details, Book price, and 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.

4. Action Plan:

Sr. Details of Activity Planned Planned Name of Responsible


No. Start date Finish date Team Members

1 Search the topic

2 Search the information

3 Collect the valid


information related to
project from searched
information
4 Develop the code for all
module
Shinde Prachi
5 Taking screenshot of Gopalrao
project output

6 Finally making the report


for the project

7 Verification of project and


report

8 Finalizing Project with its


report

5. Resources Required:

Sr. Name of resource /


No. material Specification Quantity Remarks
1 Computer PROCESSOR i5 ,8GB 1
RAM, 1 TB HDD
2 Operating System WINDOWS 11 1

3 Browser Brave 1
4 Application VS code 1

6. Names of Team Member with Roll No.:

Sr.
No. Enrollment No. Name of Team Member Roll No.

1 2210950098 Shinde Prachi Gopalrao 32

Mr. Osmani F.W.

Name and Signature of the Teacher


Annexure – II

Micro-Project Report

LIBRARY MANAGEMENT SYSTEM

1. Rationale:
Java technology is widely used for web applications development. Based on the object-oriented
concept and core java concept, this course will equid the student with the required knowledge and
skill of object-oriented programming approach needed for the development of robust, powerful web
applications. Through this course student will get hands-on experience on GUI Technologies.

2. Aims/Benefits of the Micro-Project:

1.Understand how to run the JDBC and Servlet programs.

2.To study about how to write JDBC and Servlet code in IDE eclipse.

3.Develop program to handle events in Java Programming.

3. Course Outcomes Achieved:

1. Develop program using database.

2. Develop programs using GUI Framework.


3. Develop program to handle events in Java Programming.

4. Literature Review:

Book shop management systems are computer software applications that help book shops
manage their inventory, sales, and customer records. They can also provide features such as
online ordering, customer loyalty programs, and book recommendations.

Benefits of library management systems:

• Increased efficiency and productivity


• Improved customer service
• Reduced costs
• Better decision-making

Some of the key features of Library management systems include:

• The order is placed.


• The goods are received.
• Quality checked,
• Invoices processed.
• Payment is made to vendors.
• Records of the acquisitions are maintained.
• Automatic allocation of book IDs to new acquisitions.

Conclusion:
Library management systems can be a valuable asset for book shops of all sizes. They can help
to improve efficiency, productivity, customer service, and profitability.

5. Actual Methodologies Followed:

CODE: - import
javax.swing.*; import
java.awt.*; import
java.awt.event.*;
import java.util.ArrayList;

class Library {
private String name;
private double price;
private int quantity;

public Library (String name, double price, int


quantity) { this.name = name; this.price =
price; this.quantity = quantity;
}

public String getName() {


return name;
}

public double getPrice() {


return price;
}

public int getQuantity() {


return quantity;
}

public void setQuantity(int quantity) {


this.quantity = quantity;
}
@Override public String toString() { return name
+ " - $" + price + " - Quantity: " + quantity;
}
}

public class LibraryManagementGUI {


private ArrayList<Book> bookList = new ArrayList<>();
private JFrame frame; private JTextField titleField,
priceField, quantityField; private JList<Book> list;
private DefaultListModel<Book> listModel;

public static void main(String[] args) {


EventQueue.invokeLater(new Runnable() {
public void run() { try {
BookManagementGUI window = new BookManagementGUI();
window.frame.setVisible(true); } catch (Exception e) {
e.printStackTrace();
}
}
});
}

public LibraryManagementGUI() {
initialize();
}

private void initialize() {


frame = new JFrame(); frame.setBounds(100, 100, 450,
300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);

JLabel lblTitle = new JLabel("Book Title:");


lblTitle.setBounds(10, 23, 81, 14);
frame.getContentPane().add(lblTitle);

titleField = new JTextField();


titleField.setBounds(101, 20, 228, 20);
frame.getContentPane().add(titleField);
titleField.setColumns(10);

JLabel lblPrice = new JLabel("Price:");


lblPrice.setBounds(10, 51, 81, 14);
frame.getContentPane().add(lblPrice);

priceField = new JTextField();


priceField.setBounds(101, 48, 228, 20);
frame.getContentPane().add(priceField);
priceField.setColumns(10);

JLabel lblQuantity = new JLabel("Quantity:");


lblQuantity.setBounds(10, 79, 81, 14);
frame.getContentPane().add(lblQuantity);
quantityField = new JTextField();
quantityField.setBounds(101, 76, 228, 20);
frame.getContentPane().add(quantityField);
quantityField.setColumns(10);

JButton btnNewButton = new JButton("Add Book");


btnNewButton.addActionListener(new ActionListener() { public
void actionPerformed(ActionEvent e) { String bookTitle =
titleField.getText(); double bookPrice =
Double.parseDouble(priceField.getText()); int bookQuantity =
Integer.parseInt(quantityField.getText());

if (!bookTitle.isEmpty()) {
Book book = new Book(bookTitle, bookPrice, bookQuantity);
listModel.addElement(book); titleField.setText("");
priceField.setText(""); quantityField.setText("");
}
}
});
btnNewButton.setBounds(10, 104, 140, 23);
frame.getContentPane().add(btnNewButton);

JButton btnRemoveBook = new JButton("Remove Book");


btnRemoveBook.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { int
index = list.getSelectedIndex(); if (index >= 0) {
listModel.remove(index);
}
}
});
btnRemoveBook.setBounds(170, 104, 159, 23);
frame.getContentPane().add(btnRemoveBook);

JButton btnEditQuantity = new JButton("Edit Quantity");


btnEditQuantity.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { int
index = list.getSelectedIndex(); if (index >= 0) {
Book selectedBook = listModel.getElementAt(index);
int newQuantity = Integer.parseInt(JOptionPane.showInputDialog(frame, "Enter new
quantity:"));
selectedBook.setQuantity(newQuantity);
listModel.setElementAt(selectedBook, index);
}
}
});
btnEditQuantity.setBounds(329, 104, 115, 23);
frame.getContentPane().add(btnEditQuantity);

listModel = new DefaultListModel<>();


list = new JList<>(listModel);
list.setBounds(10, 138, 414, 165);
frame.getContentPane().add(list);
}
}

OUTPUT: -
After Added New Book

When Adding A Book


Changing Quality Of Book

After Removed a book


6. Actual Resources Used:

Sr. Name of resource / Specification Quantity Remarks


No. material

1 Computer PROCESSOR i5 ,8GB 1


RAM, 1 TB HDD
2 Operating System WINDOWS 11 1

3 Browser Brave 1

4 Application VS code 1

7. Skill developed / Learning out of this Micro-Project:


There are so many things that we learn from this project of: -

1. We learn from this project is, How to Develop the Code of JDBC.
2. We learn how to use eclipse IDE.
3. We successfully developed the Book management project in JDBC.

8. Application of this Micro-Project:


1.A Library Management System Project in Java is one of the various systems developed that
has numerous functionalities that meet the current requirements of the present-day library
system.

2. Add/Remove/Author name: To add, remove or modify a book or book item

*********

You might also like