Menu

[Solved]5 Freddie S Fast Food Create Applet Displays Interface Related Fast Food Sandwiches Create Q37285283

5 Freddies Fast Food Create an applet that displays an interface related to fast-food sandwiches created at Freddies Fast Fa public class header for Freddie that extends Applet and implements ter En ItemListener. each of the following components us5 Freddie’s Fast Food Create an applet that displays an interface related to fast-food sandwiches created at Freddie’s Fast Food. Using the techniques you learned in Chapter 4, add user interface components, including Checkboxes for the condiments and a CheckboxGroup with Checkboxes for the sizes. Add enough code to the program to make the selection of both the CheckboxGroup and Checkboxes work. 1. Start TextPad. Save the file on the Data Disk using the file name Freddie.java. 2. Enter general documentation comments, including the name of this lab your name, the date, and the file name. 3. Import the following packages: java.awt.*, java.applet.*, and java.awt.event.. Remember to use the import statement and conclude each line with a semicolon. a public class header for Freddie that extends Applet and implements ter En ItemListener. each of the following components using a constructor: Create chPromptLabel, sandwichInputField, sizePromptLabel, catsupBox, sandwichP sa stardBox, pickles condiment Checkboxes to false. Set the first size Checkbox in the xGroup to true and the other sizes to false. Checkbo Create an init an init) method by typing public void initO as the header and 6. adding an opening brace. Set the background color of the applet window to red. , seteradd methods for each of the components created in Step 5. Use an S EndItemListener(this) for each of the boxes and buttons. Type the closing Enter braces for the init() method. o Type public void itemStateChanged(ItemEvent choice) as the header of the itemStateChanged() method. Type an opening brace and clos- ing brace to stub in the event. Compile the program and fix any errors 10. 11. In TextPad, click New on the File menu and then enter the HTML code to create an HTML host document to display the applet. Be sure to include the beginning and ending HTML and APPLET tags. Use a width of 350 and a height of 300. 12. Save the HTML host document on the Data Disk using the file name Freddie.html. 13. Run the applet. Click each of the buttons and boxes. Notice the Checkboxes toggle on and off, individually, while the grouped Checkboxes are mutually exclusive. 14. Print a copy of the source code for your instructor. 15. As an extra credit assignment, code the itemStateChanged) method to print out a confirmation dialog box of the customer’s order. Show transcribed image text 5 Freddie’s Fast Food Create an applet that displays an interface related to fast-food sandwiches created at Freddie’s Fast Food. Using the techniques you learned in Chapter 4, add user interface components, including Checkboxes for the condiments and a CheckboxGroup with Checkboxes for the sizes. Add enough code to the program to make the selection of both the CheckboxGroup and Checkboxes work. 1. Start TextPad. Save the file on the Data Disk using the file name Freddie.java. 2. Enter general documentation comments, including the name of this lab your name, the date, and the file name. 3. Import the following packages: java.awt.*, java.applet.*, and java.awt.event.. Remember to use the import statement and conclude each line with a semicolon.
a public class header for Freddie that extends Applet and implements ter En ItemListener. each of the following components using a constructor: Create chPromptLabel, sandwichInputField, sizePromptLabel, catsupBox, sandwichP sa stardBox, pickles condiment Checkboxes to false. Set the first size Checkbox in the xGroup to true and the other sizes to false. Checkbo Create an init an init) method by typing public void initO as the header and 6. adding an opening brace. Set the background color of the applet window to red. , seteradd methods for each of the components created in Step 5. Use an S EndItemListener(this) for each of the boxes and buttons. Type the closing Enter braces for the init() method. o Type public void itemStateChanged(ItemEvent choice) as the header of the itemStateChanged() method. Type an opening brace and clos- ing brace to stub in the event. Compile the program and fix any errors 10. 11. In TextPad, click New on the File menu and then enter the HTML code to create an HTML host document to display the applet. Be sure to include the beginning and ending HTML and APPLET tags. Use a width of 350 and a height of 300. 12. Save the HTML host document on the Data Disk using the file name Freddie.html. 13. Run the applet. Click each of the buttons and boxes. Notice the Checkboxes toggle on and off, individually, while the grouped Checkboxes are mutually exclusive. 14. Print a copy of the source code for your instructor. 15. As an extra credit assignment, code the itemStateChanged) method to print out a confirmation dialog box of the customer’s order.

Expert Answer


Answer to 5 Freddie’s Fast Food Create an applet that displays an interface related to fast-food sandwiches created at Freddie’s F… . . .

OR


Leave a Reply

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