Skip to content

A desktop-based Car Rental System developed in Java using Swing for the GUI and JDBC for Oracle database connectivity. The application allows users to register, log in, browse available cars, make bookings, process payments, and view their booking history β€” all in one streamlined platform.

Notifications You must be signed in to change notification settings

harinandanmv/java-swing-car-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Car Rental System

A Java-based Car Rental System built with Java Swing for the GUI and JDBC for database connectivity. This application allows users to register, login, book cars, process payments, and view booking history β€” all integrated in one smooth user experience.


πŸ“Œ Features

  • User Authentication

    • Secure login and registration
    • Validates user credentials with Oracle DB
  • Car Booking

    • View available cars
    • Book a car for a selected rental period
    • Booking stored in the database
  • Payment Processing

    • Supports multiple payment methods
    • Updates booking status after successful payment
  • Booking Management

    • View current and past bookings
    • Retrieve booking history with filtering

πŸ› οΈ Technologies Used

  • Java
  • Java Swing (GUI)
  • JDBC (Database Connectivity)
  • Oracle Database

πŸ—οΈ System Architecture

  • Presentation Layer: Java Swing (LoginFrame, HomeFrame, etc.)
  • Business Logic Layer: Handles validations and flow control
  • Data Access Layer: JDBC connectivity via DBConnection.java

πŸ—ƒοΈ Database Tables

  1. Users β€” Stores user info (email, username, password)
  2. Cars β€” Car details (car_id, make, model, year, rental_price_per_day)
  3. Bookings β€” Booking info (booking_id, user_email, car_id, dates, status)
  4. Payments β€” Payment data (payment_date, amount, method, status)

πŸš€ Getting Started

Prerequisites

  • Java (JDK 8 or higher)
  • Oracle Database
  • JDBC Driver
  • Java IDE (e.g., Eclipse or IntelliJ)

Setup

  1. Clone the repository:
    git clone https://github.com/harinandanmv/java-swing-car-rental.git
    cd java-swing-car-rental

About

A desktop-based Car Rental System developed in Java using Swing for the GUI and JDBC for Oracle database connectivity. The application allows users to register, log in, browse available cars, make bookings, process payments, and view their booking history β€” all in one streamlined platform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages