Skip to content

A Car Rental Management System built in Eclipse IDE using JAVA Swing and MYSQL

Notifications You must be signed in to change notification settings

aivantuquero/Car-Rental-ManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Car-Rental-ManagementSystem

A Car Rental Management System built in Eclipse IDE using JAVA Swing and MYSQL

This project was built using JavaSE 15 and has a compiler compliance level of JavaSE 11.

How to install

  1. Clone the project using https://github.com/aivantuquero/Car-Rental-ManagementSystem.git.

  2. Import dumpFile.sql located at /Car Rental System/database to MYSQL database using mysql -u user -p yourDbNameHere < dumpFile.sql and Change the Connect() methods from the source code based on your driver and server information. If you need more in-depth tutorial about importing the database kindly watch this video.

     ```
     public void Connect()
     {
             try {
                 Class.forName("com.mysql.cj.jdbc.Driver");
                 // kindly change "/localhost/rentcar_db", "root" and "password" according to your driver and mysql server information.
                 con = DriverManager.getConnection("jdbc:mysql://localhost/rentcar_db", "root","password");
                 }
     }            
     ``` 
    

The connect method is located at CarsPanel.java, CustomerPanel.java, and RentPanel.java. Hence, you have to configure the Connect() method in all three of them.

  1. Import the mysql-connector-java-8.0.25.jar and rs2xml.jar located at the folder called dependencies on Java Build Path as Libraries in Classpath. image >Your build path should now look like this.

  2. Done

How to use

  1. Run login.java and enter admin as username and password.

image

You can configure the username and password in the source code.

  1. After that, you will be greeted with a dashboard.

Features

The dashboard

image

-The dashboard features three buttons namely, Manage Customers, Manage Cars, and Rent a car.

Manage Customers

image

-This section of the system is where you access and register your customers.

Manage Cars

image

-This section of the system overlooks the whole system by showing all cars and their renter's name (if booked). This is also where you mark cars as available if the renter has given them back. This process can be done by searching the Car ID and clicking "Mark As Available"

-You can also register, delete, and edit cars in this section.

Rent A Car

image

-This section lets you book a car by choosing the customer ID and the desired car from the available cars. -The right table only shows the available cars.

-A project by Aivan Tuquero

About

A Car Rental Management System built in Eclipse IDE using JAVA Swing and MYSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages