The main idea is to add each newly created rental into a Microsoft Access Database, and to
Question:
The main idea is to add each newly created rental into a Microsoft Access Database, and to include a new "Show Rentals" button that allows users to display all previously created rentals. The GUI should look like shown below:
From the perspective of the user, the program should behave exactly like assignment 3 when rentals are created (this means you don't have to change most of the code). One difference is that when a new Rental object is created, in addition to the success message, it should also be written into the Rentals.accdb database in the folder C:Temp.
When the user clicks on the "Show Rentals" button, all the rentals stored in the database Rentals.accdb in the folder C:Temp should be displayed as shown in the example screenshot below:
In the method actionPerformed(), you will have to distinguish which button the user clicked.
You might want to create two new methods, one to store a newly created Rental object in the database, and one to display all the rentals currently stored in the database.
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall