Question: Task In this assignment, you are required to write a Java Application that uses an interactive Graphical User Interface (GUI) based on the JFrame class
Task
In this assignment, you are required to write a Java Application that uses an interactive Graphical User Interface (GUI) based on the JFrame class using SWING GUI components. Your task is to develop a Java Application that allows the user to buy items from a vending machine. The machine has three drop down lists to select available items, calculate the cost of selected items, display the total cost, pay the cost and release the item. The application should contain a GUI as shown below. The GUI components should consist of 1 Label, 3 Combo boxes/drop down lists (Select Candy, Select Gum, Select Chips), 1 Text Area and 4 Buttons (Show Total Cost, Pay Cost, Release Item, Exit). The layout managers are not used in this assignment. The components should be in the same order as shown below










Vending Machine Please select items you would like to purchase: Select a Candy |Select a Gum |Select Chips Show Total Cost Pay Cost Release Item Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
