Creating a gui front end for a pizza ordering program

Assignment Help JAVA Programming
Reference no: EM13941774

I need assistance in creating a GUI front end for a pizza ordering program similar to that shown below. The result should look something like that presented in enclosed Figure. it must use a JComboBox to display the available pizza toppings (listed below), and when the Add to Order button is clicked, the selected toppings should be added one by one to the JList (this component uses the JScrollPane to allow the user to see their complete order). The Clear button should clear all fields on the form except for the toppings in the combo box, and the Submit button should display a JOptionPane with an error message if any of the fields are blank on the form except for the delivery checkbox. If all fields are filled and the Submit button is clicked, a JOptionPane should display the user's name and address with a message thanking them for their order.

The form below utilized the following elements:

1 Horizontal Line
4 JLabels (Title, Toppings, Name, Address)
1 JComboBox (Toppings)
3 JButtons (Add to Order, Clear, Submit)
2 JTextFields (Name, Address)
1 JScrollPane (Toppings Selected)
1 JList (Toppings Selected)
1 JButtonGroupPanel (Large, Small, Medium)
3 JRadioButtons (Large, Small, Medium)
1 JCheckBox (Delivery)

The ingredients that should be listed in the JComboBox are:

Cheese Pepperoni Mushrooms Green Peppers
Onions Jalapenos Hamburger Olives

Hint: Do not attempt to make the GUI too sophisticated. Just concentrate on producing a working result (although sound programming techniques should still be applied).

1611_pizaa.png

Figure 1: Pizza Order Form

My answer must be in GUI format - command line programs and Applets will not be accepted for this problem!

Kindly remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Please remember also that by convention, class names commence with a capital letter.

As with all programs we write, we should provide a well-structured solution that is easy to read. We should use meaningful identifier names and should provide useful comments. Kindly highlight on the structure of the classes.

 

 

Reference no: EM13941774

Questions Cloud

What are the most common measures of central tendency : What are the most common measures of central tendency? What information is provided by each of these measures and what do they tell us
Will this help the city to deal with violent juvenile offend : Use the juvenile crime situation in Baltimore City to analyze the effects of the Gault ruling. Do you think the Gault ruling has had the impact on the juvenile justice system that was envisioned by the Supreme Court? Why? Has this ruling become a ..
Ferraris of work design : Edwin Lawler, Management Professor at the University of Southern California, states, "Teams are the Ferraris of work design. They're high performance but high maintenance and expensive." Do you agree? Why or why not?
Drawbacks or risks of living in flat world of globalisation : What would be some of the key drawbacks or risks of living in the flat world of Globalisation 3.0 as Friedman describes it?
Creating a gui front end for a pizza ordering program : Kindly remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Please remember also that by convention, class names commence with a capital letter.
Applied or theoretical concept of e-business : Your essay will address an applied or theoretical concept of e-business.. The suggested length is approximately 3-4 pages
Create a gui front end for your bubble sort program : Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user (assume the user will not input duplicates).
Describing the legal and ethical issues tied to the case : Research an organization that has had a lawsuit filed against them for wrongful termination. Write a 350-word summary describing the legal and ethical issues tied to the case
Summary on the importance of employee rights : Select the best actions to take. Write a 350-word summary on the importance of employee rights

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  The menu is displayed and the user must select

The menu is displayed and the user must select an option (a number between 0 and 7). The action corresponding to the selection is performed, then the menu is displayed again and the user can choose another option.

  Display a table of values

Using Netbeans, use repetition to display a table of values showing x, the square of x and the cube of x. X is to go up to 5.

  Evaluate an infix expression entered by the user

Spaces between tokens are allowed but not required. The program will repeatedly prompt the user for the value of x, displaying the value of the expression each time. When the user enters the letter q instead of a number, the program terminates.

  Creating an application that accepts product data

You have been tasked with creating an application that accepts product data and displays this information. The application also computes average sales and shipping charges

  Tese 14 questions covers java class array link list

these 14 questions covers java class array link list generic class please read carfullynbspnbsp1. suppose we have a

  Rectangular and cylindrical coordinates

Write a program to convert between rectangular and cylindrical coordinates, based upon user input.

  Write an application that reads determines the surface area

Write a program that uses the top five countries' National Wealth to calculate the average of those five countries.

  What violations and crimes would you definitely file

What if you were a parole officer and had to decide whether or not to file complaints against your parolees? What violations and crimes would you definitely file complaints for and what would you most likely overlook and why?

  Latin squares - puzzle

Solve button causes the program to display a single solution by using only the symbols from the top row of six text fields in such a way that the non-empty grid symbols are not altered.

  What are the three types of errors

What are the three types of errors that you can encounter in a Java program? Describe them, and explain how you would minimize the errors

  Construct the student class student.h

Construct the Student Class Student.h and Student.cpp student class should include a Student.h header file for your class definitions and a Student.cpp implementation file comprised of first name, last name, ram id

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd