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

(Solved) : Write Simple Pizza Order Application Please Apply Following Requirements Application Crea Q35621916

  1. Write a simple pizza order application Please apply thefollowing requirements for the application. a. Create aPizzaSelectionFrame with FlowLayout. Do not forget that yourcomponents will be displayed in which order they are added. b.Title of the frame will be “Order Pizza”. c. You need a combo boxwhich includes a list of pizza: chicken pizza, pepperoni pizza, andveggie pizza. d. When a user selects a pizza from the list, displaythe related icon in a label. Icons are also uploaded with yourassignment. (Hint: you need to implement ItemListener interface andoverride itemStateChanged method). By default, display any icon. e.You need a label to display “Select Size:”. f. You need three radiobuttons (and a button group) to display the size of Small, Medium,and Large. Small size will be selected by default. g. You need alabel to display “Select Topping(s):”. h. You need two check boxesto display the toppings of Mushroom and Bacon. i. You need a“Submit Order” button. j. Frame size will be 325 * 300. k. You mustset the background color of your pane as LIGHT_GRAY.l. When a userclicks Submit Order button, you will display an Option Dialog. i. Auser can select any size of pizza without any toppings.

n. If a user clicks on OK, PaymentFrame will be displayed. o. In this frame, you will have five labels and five text fields (
iv. In your message, you will display “Order Summary: size of apizza with the list of toppings (if any)”. (Hint: you will only addan action listener for your button, so you will need ActionListener Interface and override actionPerformed method). m. Thesyntax of Option Dialog is:

i.JOptionPane.showOptionDialog(PizzaSelectionFrame.this,

“Your Message”, “Your Title”,

JOptionPane.OK_CANCEL_OPTION,

JOptionPane.QUESTION_MESSAGE, null,null, null);

ii. If a user clicks “OK”, then he/shemust view “PaymentFrame”. iii. If a user clicks “Cancel”, thenhe/she must view again “PizzaSelectionFrame”. iv. The syntax in ireturns an int value. If it is “0”, it means that the user clicked“OK”. Otherwise, it means that the user clicked “CANCEL”.

n. If a user clicks on OK, PaymentFrame will be displayed. o. In this frame, you will have five labels and five text fields (size is 20). Title of the frame is “Payment. p. You need a GridLayout (2 rows, 6 columns, 5 px horizontal gap, 5 px vertical gap) q. You must set the background color of your pane as LIGHT GRAY. r. You must set the size of the frame as 600*200 Payment and Surname: dress: redit Card Number: xpiration Date: Pay s. When a user clicks “Pay” button. You must display a message in a Message Dialog Box, and you must exit the system. (Hint: System.exit(O);) Additionally, if a user clicks “x” to close the window, you must quit the application t. u. Your message will be “Your order will be delivered in 30 minutes” Payment and Surname: Message Your order will be delivered in 30 minutes Card Number: xpiration Date: OK Show transcribed image text n. If a user clicks on OK, PaymentFrame will be displayed. o. In this frame, you will have five labels and five text fields (size is 20). Title of the frame is “Payment. p. You need a GridLayout (2 rows, 6 columns, 5 px horizontal gap, 5 px vertical gap) q. You must set the background color of your pane as LIGHT GRAY. r. You must set the size of the frame as 600*200 Payment and Surname: dress: redit Card Number: xpiration Date: Pay s. When a user clicks “Pay” button. You must display a message in a Message Dialog Box, and you must exit the system. (Hint: System.exit(O);) Additionally, if a user clicks “x” to close the window, you must quit the application t. u. Your message will be “Your order will be delivered in 30 minutes” Payment and Surname: Message Your order will be delivered in 30 minutes Card Number: xpiration Date: OK

Leave a Reply

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