PremJavaReport
PremJavaReport
Micro Project On
Submitted by
18.Prem Yede
Under Guidance of
Ms. K. S. Jadhav
Sinhgad Institutes
Sinhgad Technical Education Society’s
SOU. VENUTAI CHAVAN POLYTECHNIC, PUNE - 411041
ACADEMIC YEAR 2024– 2025
Maharashtra State Board of technical
Education Certificate
This is to certify that, Mast. Prem Yede with Roll No. 18 of Third
Semester of Diploma in Information Technology of Institute Sou.
Venutai Chavan Polytechnic (Code:0040) has successfully
completed the Micro-Project in Advanced Java Programming
(22517) for the academic year 2024-2025.
A. BRIEF INTRODUCTION:
E-Shop Management System is a Java-based project where crabs descend from random positions at
the top of the screen, and the player controls a paddle at the bottom. The objective is to shoot the crabs
using bullets fired from the paddle. When the crabs are hit, they disappear, and the game continues as
more crabs appear. This game challenges players to react quickly and improve their aim, combining
elements of randomness with fast-paced shooting mechanics. It also incorporates object-oriented
design principles and showcases your skills in game development using Java.
The aim of the E-Shop Management System project is to develop an engaging and interactive arcade-
style game where players control a paddle to shoot crabs descending from the top of the screen. The
project focuses on enhancing logical thinking and programming skills by implementing core game
mechanics, such as random object generation, collision detection, and player interaction, using Java.
It also aims to provide a fun and challenging experience for players while showcasing the developer’s
understanding of object-oriented programming, game physics, and graphical user interface design in
Java.
Name of Resource
Sr. No. Specification
Required
1. Laptop Dell – i5 ,16 GB RAM
2. Operating system Windows 11
3. Software Google chrome
E. ACTION PLAN:
Discussion and
2 finalization of topic
3 Literature Review
4 Collection of Data
5 Discussion and outline of Content
6 Editing and proof Reading of Content
Completion of Report
7 and Presentation
GROUP MEMBERS:
Java technology is widely used for web applications development. Based on the object-oriented
concepts and core Java concepts, this course will equip the students with the required
knowledge and skill of object-oriented programming approach needed for the development of
robust, powerful web applications. Through this course students will get hands-on experience
on GUI Technologies viz. AWT and Swings, event handling mechanisms and network
programming. The course also gives coverage to various web applications aspects like
The process for this micro project is to make a "E-Shop Management System"
We collect information and organize by following points:
1. Collect the information on Notepad.
2. Show the information to faculty.
3. Learn about layers of atmospheres.
4. First make a raw report and then correct it.
5. After all the corrections make a proposal.
6. Prepare a project on “E-Shop Management System”
7. Make pdf of report and print it.
Annexure III
Evaluation Sheet for the Micro Project
Academic Year: 2024-2025 Name of the Faculty: Ms. K. S. Jadhav
Course: Advanced Java Programming (22517) Semester: Fifth
Title of the project: " E-Shop Management System."
18 Prem Yede
The E-Shop Management System is a Java Swing application designed to streamline e-commerce
management by providing a user-friendly platform for product cataloging, inventory control, and
secure user authentication. This system allows customers to log in, view product details with images,
check stock availability, and place orders, while administrators can manage products, update
inventory, and oversee customer data. With a MySQL database integration, the system efficiently
handles data storage for users and products, ensuring secure and smooth transactions. This project
aims to simplify and automate e-commerce management, offering an intuitive interface for customers
and robust tools for administrators.
Code:-
• App.java
import javax.swing.*;
import java.util.ArrayList;
import java.util.List;
• AccountCreation.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
// Create components
JLabel usernameLabel = new JLabel("Username:");
usernameField = new JTextField(20);
usernameField.setText("");
passwordField.setText("");
emailField.setText("");
phoneField.setText("");
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
public AdminDashboard() {
setTitle("Admin Dashboard - Add New Products");
setSize(500, 500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new GridLayout(7, 2, 10, 10));
add(new JLabel("Price:"));
priceField = new JTextField();
add(priceField);
add(new JLabel("Quantity:"));
quantityField = new JTextField();
add(quantityField);
setVisible(true);
}
• AdminLoginPage.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public AdminLoginPage() {
setTitle("Admin Login");
setSize(350, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
// Create components
JLabel usernameLabel = new JLabel("Username:");
usernameField = new JTextField(15);
gbc.gridx = 1; gbc.gridy = 0;
panel.add(usernameField, gbc);
gbc.gridx = 0; gbc.gridy = 1;
panel.add(passwordLabel, gbc);
gbc.gridx = 1; gbc.gridy = 1;
panel.add(passwordField, gbc);
}
• ScoreDb.java
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
• LoginPage.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
// Create components
JLabel usernameLabel = new JLabel("Username:");
usernameField = new JTextField(15);
gbc.gridx = 1; gbc.gridy = 0;
panel.add(usernameField, gbc);
gbc.gridx = 0; gbc.gridy = 1;
panel.add(passwordLabel, gbc);
gbc.gridx = 1; gbc.gridy = 1;
panel.add(passwordField, gbc);
if (loginStatus) {
JOptionPane.showMessageDialog(null, "Login successful!");
• Product.java
public class Product {
private int id;
private String name;
private double price;
private int quantity;
private String imagePath;
public Product(int id, String name, double price, int quantity, String imagePath) {
this.id = id;
this.name = name;
this.price = price;
this.quantity = quantity;
this.imagePath = imagePath;
}
public int getId() {
return id;
}
https://docs.oracle.com/javase/tutorial/extra/fullscreen/index.html
https://docs.oracle.com/javase/tutorial/uiswing/
https://www.geeksforgeeks.org/introduction-to-java-swing/
https://www.tutorialspoint.com/swing/index.html
https://stackoverflow.com/questions/66906630/switch-scenes-in-java-swing
Conclusion
This project effectively demonstrates the implementation of a user-friendly e-shop management system using Java
Swing. The application provides a smooth experience for both general users and admin users by allowing account
creation, user authentication, and product display functionalities. Through the account creation feature, users can
register their details, which are securely stored in a MySQL database. The login feature validates user credentials
to ensure secure access, with specific screens tailored for regular and admin users. Additionally, the product display
page showcases products in a format similar to an e-commerce platform, enhancing the user experience and
simulating a real-world shopping environment.