Share
Explore BrainMass

Complex GUI exercise

Design an application to take and process a pizza order. The user should be able to make pizza order choices from listboxes, and the application should display the order price. One of the listboxes should allow a user to select pizza size under the following criteria: small with the base price of $7, medium with the base price of $9, and large with the base price of $11. The second listbox should allow a user to select an additional topping and add its price to the total price of the pizza. There is no additional price for cheese, but any other topping (Of your choice to add to the listbox) adds $1 to the base price. Offer at least five different toppings of your choice. On a click of an "Order Summary" JButton, display the total pizza price in a label.

Solution Preview

I've developed the program in Java Netbeans as per the given instructions. I'm also pasting the core code here with comments. It is easy to follow. I'm also enclosing the complete solution along with a screen shot of the working program.

You may find the below code in the pizzaOrderView.java file included in the project solution.

private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {

//declare variables ...

Solution Summary

The solution assists with designing an application to take and process a pizza order using a complex GUI.

$2.19