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

  What would be an incorrect way of writing this equation

Jim develops 5 Java applications a year. Joe develops 10 Java applications a year. Jim gets paid $5000.00 per application, but Joe gets paid $10000.00 per application.

  Compute the fifties and the remaining amount

Prompt the user for a string input value for the amount in dollars and store it in a variable named input and convert the string to an integer and store it in the variable named amount.

  Design a method in a stack implementation

Design a method in a Stack implementation that allows the user to insert a new member to the "bottom" of a stack.

  Natural sympathies

Discussed the "natural sympathies" and equality that exist between Jane and Mr. Rochester and that challenge the rigid class structure of English society.

  Displays a drawing for the popular hangman game

Write a program that displays a drawing for the popular hangman game

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Run the code

Run the following code, Explain the output aYer you let it run 20 seconds, 5 minutes, 10 minutes.

  You are a mighty warrior and armed with your trusty bow and

you are a mighty warrior and armed with your trusty bow and 3 arrows you enter the caves in search of the mighty

  Write a method named validate to help a local banker

write a method named validate to help a local banker. Your method will need to utilize two input parameters and the method's return value (for its output).

  How do the two implementations differ

Give an example of a program that uses the non-generic version of a class from the Java collection framework and the equivalent program that uses the generic version.How do the two implementations differ?

  Adt for a two color double stack adt consists of two stacks

design an adt for a two color double stack adt that consists of two stacks one red and one blue and has its operations color coded versions of the regular stack adt operations.

  Application that inputs ten numbers from the user

Write an application that inputs ten numbers from the user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is a number already entered.

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