Wk4 programming practice | Computer Science homework help


Working with Lists and Tabs

In this weeks practice program you are going to extend the Week 3 Pizza Graphical user Interface program and add JTabbs and JLists to the interface.  While is it a good idea for you to continue working with the program you created in the previous week, you can download a working solution WK3_Practice_Pizza.zip and start with this solution.

If you have any questions or need any help post a question in the Programming/Practice Help discussion in the Introduction & Resources module.


  1. If you are using your solution, make a copy of your solution, rename it to WK4 Practice (or something similiar) then open up the copy.
  2. Create a new JFrame form in the application.
  3. Add a JTabb to new, blank form.
  4. Add two panels to the JTabb.
  5. Open up the “old” form with the original pizza controls, then select the controls and copy and paste them to the one of the panels in the new form with the JTabb
    1. You can copy all of them at once by holding down the CTRL key and clicking on the control.
    2. Selecting a panel will select all the elements in the panel.
    3. Notice that when you copy the controls all the events and handlers are copied over as well.
  6. Select all the code behind the original Pizza_Main (do not copy the control code) and paste it into the new JFrame.
  7. Run the program and ensure the collecting the pizza order information works as in the original program.
  8. In the second panel add
    1. JList that will hold the list of all the orders
    2. TextField that will display the selected order
    3. A delete order button that will delete a selected order.
    4. Update order button that will up the total cost of a selected order.
Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.