Question
Skateboard Designer in java The Skate Shop sells the skateboard products listed in the table shown below: Create an GUI application with combo boxes that
Skateboard Designer in java The Skate Shop sells the skateboard products listed in the table shown below:
Create an GUI application with combo boxes that holds decks, axles, and wheel options. The user should select a deck design, an axle design, and a wheel design. The application should show the total cost.
Decks | Axle | Wheel | |||
The Master Thrasher | $60 | 7.75 inch axle | $35 | 51 mm | $20 |
The Dictator | $45 | 8 inch axle | $40 | 55 mm | $22 |
The Street King | $50 | 8.5 inch axle | $45 | 58 mm | $24 |
61 mm |
$28
|
Create a GUI as the following screenshot. Name each of the components properly.
Implement the Item Listener/Action Listener of the combo boxes. When the selected item is changed (i.e., the user select one option from the combo boxes), calculate the total cost, based on the design option selected. Display the result in a JLabel
.
Please use the following
JFrame, JLabel, and JComboBox are used, and named properly; i.e., the names of the objects should
be descriptive.
The JComboBox classs getSelectedIndex() method is used.
One ActionListener is implemented to handle the event of all combo boxes.
skaterboard Designer Decks Dictator s Truck Assmblies 8.5 inch axde $45 Wheels s 58 mm $24 The total is: $114.0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started