Question: Enhanced GUI Application using Additional Swing Components OBJECTIVES Create a GUI that uses JCheckBox, JRadioButton, JTextArea, and menus. Process multiple events. PROBLEM: BurgersRUs Point of
Enhanced GUI Application using Additional Swing Components
OBJECTIVES
- Create a GUI that uses JCheckBox, JRadioButton, JTextArea, and menus.
- Process multiple events.
PROBLEM: BurgersRUs Point of Sale system
Burger Barn needs a point of sale application. The products and prices are as follows.
Burgers: single $3.50, double $4.75
Add cheese: + $.50
Add bacon: + $1.25
Make it a meal: + $4.00
FUNCTIONAL REQUIREMENTS
You can code the GUI by hand or use NetBeans GUI builder interface.
The GUI should use JRadioButton to choose single or double burger.
- Single burger
- Double burger
It should use JCheckBox for add ons.
- Add cheese
- Add bacon
- Make it a meal
JTextField for item price, order quantity, order total
JTextArea to display the receipt
Create a menu with the following options.
File Order
Exit Add to Order
Clear for next item
New Order
As the user selects items, the item price should be calculated and updated accordingly.
Note that quantity should default to 1. The user can change if needed.
Once choices are made and quantity is entered, process the order using the menu options.
OrderAdd to Order Displays the choice and price in each text area.
Note that multiple items can accumulate in a single order
Updates the order total
OrderClear for next item Clears the checkboxes. Note that quantity should default to 1
OrderNew Order Clears the GUI and totals for a new order
FileExit Exits the program. Use System.exit(0) commad.
Sample GUI



Burger Barn Order Add to Order Clear for next item New Order Add cheese Add bacon Make it a meal Quantity 1 Item Price Order Total Burger Barn File Order YOUR ORDER O Single Burger 1 single at 3.50 each 2 double, cheese, meal at 9.25 each Double Burger V Add cheese Add bacon V Make it a meal Quantity , Item Price 9.25 Order Total 22.00 Burger Barn File Order Exit YOUR ORDER OSingle Burger Double Burger Add cheese Add bacon Make it a meal Quantity Item Price Order Total
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
