Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please complete the code in java follow the requirements in the paper and add the same comments to the code use the same code in

Please complete the code in java follow the requirements in the paper and add the same comments to the code
use the same code in the paper and just complete it and add the comments to it
I need this fast
thank you
notice
=250
=300
image text in transcribed
image text in transcribed
image text in transcribed
[4.5+1+2+1+2+4.5+1=16 marks ] The following code is a simple application for Steak House Restaurant, the user can choose from the giving menu and make his order. The total cost of his order will be displayed in JOptionPane window after the user click the "make order" button. The application will look like below: The application will look like below: Your tasks are to: 1. Create nine components. Y. Set the layout of the frame to be Border layout r. Add the title and set the size to the frame. \&. Add the components to the panels. -. Add the appropriate panels to the frame. 1. Show the window. import javax.swing.*; import java.awt.*: import java.awt.event. *: public class SteakHouse extends JFrame \& private JPanel pancl': private JPanel panelY; private JPanel panel T: private JPanel panelt: private JLabel messagelabel : If A message to the user private JLabel messagelabelt; II A message to the user private JLabel chicken, beef,steak; private JTextField chickBurger; // To enter number of chicken Burger private JT extField beefBurger; /1. To enter number of beef Burger private JTextField steakBurger, If To enter number of steak private JButton calculate; II To calculate the price private final int WINDOW WIDTH =T;/l Window width private final int WINDOW HEIGHT = ro*; /l Window beight public SteakHouse() I/ Set the text for the title bar. I/ Set the size of the window. // Specify an action for the close button. buildPanel0; // Set a layout of the frame to border layout. If Add the panels to the content pane. // Display the window. public void buildPanel( ) f //create the 1 components: //add the components

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions