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.

Don't use plagiarized sources. Get Your Custom Essay on
Need an answer from similar question? You have just landed to the most confidential, trustful essay writing service to order the paper from.
Just from $11/Page
Order Now

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.