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.
-
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
- Java
- Java Swing (GUI)
- JDBC (Database Connectivity)
- Oracle Database
- Presentation Layer: Java Swing (
LoginFrame,HomeFrame, etc.) - Business Logic Layer: Handles validations and flow control
- Data Access Layer: JDBC connectivity via
DBConnection.java
- Users β Stores user info (
email,username,password) - Cars β Car details (
car_id,make,model,year,rental_price_per_day) - Bookings β Booking info (
booking_id,user_email,car_id,dates,status) - Payments β Payment data (
payment_date,amount,method,status)
- Java (JDK 8 or higher)
- Oracle Database
- JDBC Driver
- Java IDE (e.g., Eclipse or IntelliJ)
- Clone the repository:
git clone https://github.com/harinandanmv/java-swing-car-rental.git cd java-swing-car-rental