Question: You must use GridBagLayout for this assignment. Must have the application that displays a menu of items on the left hand side and displays the

You must use GridBagLayout for this assignment. Must have the application that displays a menu of items on the left hand side and displays the total of all the items selected on the right. The display on the right must display each item, the price for the item and the total for those items. As each item is selected, it must immediately update the display on the right. If the user removes an item on the left, it must be removed on the right, so that it is completely updated. The items that are included are completely up to you, as long as you incorporate all of the components. One possible option (which you may use, if you wish) is a food ordering system.

A textfield would include the users name. Checkboxes would then include all of the food items that are offered. You could then have a radio button group that appears when the user chooses a drink to indicate the size and the flavor. You might also want textfields to appear after each checkBox is checked to indicate the quantity of each item. This is entirely your choice as long as it functions well. Price for each item must be displayed in some way in the list and should be accurately displayed on the right.

The items on the left must use the following:

Textfield, CheckBoxes, RadioButtons and Labels

Once the user presses the Submit button (this can be on the same form or in a toolbar), the total after a 7% tax is added will be displayed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create an application using GridBagLayout that meets the requirements described you can follow the steps outlined below Well create a simple food o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!