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.
-
Clone the project using
https://github.com/aivantuquero/Car-Rental-ManagementSystem.git
. -
Import
dumpFile.sql
located at /Car Rental System/database to MYSQL database usingmysql -u user -p yourDbNameHere < dumpFile.sql
and Change theConnect()
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
, andRentPanel.java
. Hence, you have to configure theConnect()
method in all three of them.
-
Import the
mysql-connector-java-8.0.25.jar
andrs2xml.jar
located at the folder calleddependencies
on Java Build Path as Libraries in Classpath. >Your build path should now look like this. -
Done
- Run login.java and enter
admin
as username and password.
You can configure the username and password in the source code.
- After that, you will be greeted with a dashboard.
-The dashboard features three buttons namely, Manage Customers, Manage Cars, and Rent a car.
-This section of the system is where you access and register your customers.
-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.
-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