Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Write Simple Pizza Order Java Application Please Apply Following Requirements Java Applica Q35599961

Order Pizza chicken pizza Select Size: ⓔSmall-O Medium 10 Large Select Topping(s): Mushroom | □ Bacon Submit Order

Write a simple pizza order Java application. Pleaseapply the following requirements for the Javaapplication:

DO NOT DRAG AND DROP COMPONENTS

a. Create aPizzaSelectionFrame withFlowLayout. Do not forget that your componentswill be displayed in which order they are added.

b. Title of the frame will be “OrderPizza”.

c. You need a combo box which includes a listof pizza: chicken pizza, pepperoni pizza, and veggie pizza.

d. When a user selects a pizza from the list,display the related icon in a label. Icons are also uploaded withyour assignment. (Hint: you need to implement ItemListenerinterface and override itemStateChanged method). By default,display any icon.

e. You need a label to display “SelectSize:”.

f. You need three radio buttons (and a buttongroup) to display the size of Small, Medium, and Large. Small sizewill be selected by default.

g. You need a label to display “SelectTopping(s):”.

h. You need two check boxes to display thetoppings of Mushroom and Bacon.

i. You need a “Submit Order” button.

j. Frame size will be 325 * 300.

k. You must set the background color of yourpane as LIGHT_GRAY

———————————————————————————————————————————————————

m. The syntax of Option Dialog is:

  1. JOptionPane.showOptionDialog(PizzaSelectionFrame.this, “YourMessage”, “Your Title”, JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE, null, null, null);

  2. If a user clicks “OK”, then he/she must view “PaymentFrame”.

  3. If a user clicks “Cancel”, then he/she must view again“PizzaSelectionFrame”.

  4. The syntax in i returns an int value. If it is “0”, it meansthat the user clicked “OK”. Otherwise, it means that the userclicked “CANCEL”.

n. If a user clicks on OK, PaymentFrame will bedisplayed.

o. In this frame, you will have five labels andfive text fields (size 20). Title of the frame is”Payment”.

p. You need a GridLayout (2 rows, 6 columns, 5px horizontal gap, 5px vertical gap).

q. You must set the background color of yourpane as LIGHT_GRAY.

r. You must set the size of the frame as600*200.

Payment Name and Surname: Address Credit Card Number: Expiration Date: CVC: Pays. When auser clicks “Pay” button. You must display a message in a MessageDialog Box, and you must exit the system. (Hint:System.exit(0);

t. Additionally, if a user clicks “x” to closethe window, you must quit the application.

u. Your message will be “Your order will bedelivered in 30 minutes”.

Payment Name and Surname: Address: Credit Card Number: Expiration Date: CVC: Message Your order will be delivered in 30 minut

1. When a user clicks Submit Order button, you willdisplay an Option Dialog:

A user can select any size of pizza without anytoppings.

Order Pizza Confirmation 2 Order Summary: small size chicken pizza OK Cancel Select Topping(s): D Mushroom Bacon Submit Order

A user can select any size of a pizza with TWOtoppings.

Confirmation Order Summary: medium size pepperoni pizza with mushroom and bacon OKCancel

A user can select any size of a pizza with ONEof the toppings.

Confirmation Order Summary: medium size pepperoni pizza with mushroonm OK CancelIn your message, you willdisplay “Order Summary: size of a pizza with the list of toppings(if any)”. (Hint: you will only add an action listener for yourbutton, so you will need Action Listener Interface and overrideactionPerformed method).

Order Pizza chicken pizza Select Size: ⓔSmall-O Medium 10 Large Select Topping(s): Mushroom | □ Bacon Submit Order Payment Name and Surname: Address Credit Card Number: Expiration Date: CVC: Pay Payment Name and Surname: Address: Credit Card Number: Expiration Date: CVC: Message Your order will be delivered in 30 minutes OK ОК Pay Order Pizza Confirmation 2 Order Summary: small size chicken pizza OK Cancel Select Topping(s): D Mushroom Bacon Submit Order Confirmation Order Summary: medium size pepperoni pizza with mushroom and bacon OKCancel We were unable to transcribe this imageShow transcribed image text Order Pizza chicken pizza Select Size: ⓔSmall-O Medium 10 Large Select Topping(s): Mushroom | □ Bacon Submit Order
Payment Name and Surname: Address Credit Card Number: Expiration Date: CVC: Pay
Payment Name and Surname: Address: Credit Card Number: Expiration Date: CVC: Message Your order will be delivered in 30 minutes OK ОК Pay
Order Pizza Confirmation 2 Order Summary: small size chicken pizza OK Cancel Select Topping(s): D Mushroom Bacon Submit Order
Confirmation Order Summary: medium size pepperoni pizza with mushroom and bacon OKCancel

Leave a Reply

Your email address will not be published. Required fields are marked *