Bouquet-Shop-Management

๐ŸŒธ Bouquet Shop Management (Java Swing)

Bouquet Shop Management System is a desktop-based Java application developed using Java Swing for the user interface and Microsoft Access as the backend database. It automates bouquet shop operations such as user registration, login, bouquet selection, billing, and payment processing using multiple payment modes.


๐Ÿงฉ Overview

The system simplifies sales management for bouquet shops by providing an interactive GUI. Users can browse bouquets, add them to their cart, and complete secure payments. It enhances both customer experience and administrative efficiency.


๐ŸŽฏ Objectives


โš™๏ธ Key Features


๐Ÿ› ๏ธ Tech Stack

Component Technology
Frontend Java Swing
Backend Microsoft Access
Database Connectivity JDBC (UCanAccess)
Language Java (JDK 8+)
IDE Eclipse / IntelliJ / NetBeans
OS Windows 10 / 11

๐Ÿงฑ Modules

1. Login Module

Authenticates users with credentials stored in the database.

2. Signup Module

Allows new users to register securely using name, email, mobile number, and password.

3. Home / Product Module

Displays available bouquets (Tulip, Rose, Lily, Mixed) and allows adding to cart.

4. Cart & Checkout Module

Shows selected bouquets, total cost, and allows modifying cart items.

5. Payment Module

Handles multiple payment modes such as UPI, QR Code, Net Banking, and Cards.


๐Ÿง  Database Design

USER Table

| Field | Type | Description | |โ€”โ€”โ€“|โ€”โ€”|โ€”โ€”โ€”โ€”-| | first | Text | First Name | | last | Text | Last Name | | mobile | Number | Mobile Number | | email | Text | Email Address | | password | Text | Password | | cpassword | Text | Confirm Password | | address | Text | Address |

PRODUCT Table

| Field | Type | Description | |โ€”โ€”โ€“|โ€”โ€”|โ€”โ€”โ€”โ€”-| | proname | Text | Bouquet Name | | proprice | Number | Price |


๐Ÿ’ป System Requirements

Software:

Hardware:


โš™๏ธ Installation & Execution

Step 1: Configure Database

Place bouquetshop.accdb inside a database/ folder.

Step 2: Add UCanAccess Libraries

Download and add the following .jar files to lib/:

Step 3: Compile and Run

javac -cp "lib/*" -d build src/*.java
java -cp "build:lib/*" login

๐Ÿงฉ Code Example

Database Connection

Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
Connection conn = DriverManager.getConnection("jdbc:ucanaccess://D://Javaproject//Bouquetshop//bouquetshop.accdb");

Login Validation

String sql = "SELECT * FROM user WHERE mobile='" + mobile + "' AND password='" + pass + "'";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
if(rs.next()) {
    JOptionPane.showMessageDialog(null, "Login Successful!");
} else {
    JOptionPane.showMessageDialog(null, "Invalid Credentials!");
}

Insert Product Data

PreparedStatement ps = conn.prepareStatement("INSERT INTO product (proname, proprice) VALUES (?, ?)");
ps.setString(1, "Rose Bouquet");
ps.setDouble(2, 750.00);
ps.executeUpdate();

๐Ÿ–ผ๏ธ UI Flow

  1. Login Page โ€“ User Authentication
  2. Signup Page โ€“ New User Registration
  3. Home Page โ€“ Browse Bouquets
  4. Cart Page โ€“ Order Summary
  5. Payment Page โ€“ Complete Transaction

๐ŸŒŸ Advantages


๐Ÿ”ฎ Future Enhancements


๐Ÿงพ Conclusion

The Bouquet Shop Management System automates bouquet sales and simplifies operations. Itโ€™s an ideal solution for small flower businesses looking to transition from manual to digital management.


๐Ÿ‘จโ€๐Ÿ’ป Developers

Department of Computer Science and Applications
The Gandhigram Rural Institute (Deemed to be University)
May 2024


๐Ÿ“š References


๐Ÿชช License

This project is created for academic purposes and distributed under the MIT License.