Description
Now that the program can store the orders into the database, it's time to visualize the inventory in our program!
Objectives
To complete this stage, your program should perform the following two things:
- Add a new tab to
JTabbedPanenamedInventory; - This window should have the following elements (make sure the name matches so that the tests are successful):
JLabelnamedMerlotAmountLabelthat displays the total amount of Merlot from the database;JLabelnamedRoseAmountLabelthat displays the total amount of Rosé from the database;JLabelnamedSauvignonAmountLabelthat displays the total amount of Sauvignon Blanc from the database;JLabelnamedTotalAmountLabelthat displays the total number of bottles in the inventory.
The program should take the data from the database and reflect it in the corresponding labels. Additionally, as users add new bottles from suppliers, this screen should reflect the updates immediately.
Example
Example 1: the inventory