Swing and Database Connection

timer Asked: Feb 9th, 2015

Question Description

I need an explanation for this Computer Science question to help me study.

iLab 6 of 6: Swing and Database Connection (40 points)


Submit your assignment to the Dropbox, located at the top of this page.

(See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)



Develop one application using JTabbedPanes and JFrames and another application that connects to a MySQL database.


  1. JavaPizza
  2. ContactList

At the beginning of all your programs, put a comment box that includes the program name, your name, and a brief description of the program.


Program Name: ProgramName.java
Programmer's Name: Student Name
Program Description: Describe here what this program will do

How to submit your assignment: 

  1. The programs must have the same names as the assignment title.
  2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
  3. In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document.
  4. You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place all of the .java and .class files for the week into the one zipped folder. The zip folder should be named CIS355A_YourLastName_iLab_Week6, and this zip folder will contain all the weekly programming assignments.

Required Software


Access the software at https://lab.devry.edu.
Steps: 1 and 2


Step 1: JavaPizzaBack to Top    

Develop an application using a JTabbedPane to order a pizza. You will need to ask the customer for their name and phone number. You will ask for the size (choose one) and toppings (choose many) and compute the total. After computing the total, provide a button to display the order summary, which includes the name, phone number, size, toppings, and total. The prices are listed below. Screenshots of a possible solution are included. Your application must include four tabs and open a new window when the button is clicked.

  • Small:  8.00
  • Medium: 10.00
  • Large: 12.00

Each topping is 2.00 extra.




Standard header included


Must contain program's name, student name, and description of the program

Program compiles


Program does not have any error

Program executes


Program runs without any error

Created the JTabbedPane with four tabs


The JTabbedPane is displayed with the four required tabs and components on each tab

Total is calculated correctly


The total on the last tab is calculated correctly based on information supplied.

Order summary window displayed correctly


The order summary window is displayed with a JTextArea, including all information from the four tabs.


Step 2: Contact ListBack to Top    

Develop a Java application to add a contact into the contact table, and display all contacts in the contact table. The contact table contains two columns, FullName, and PhoneNumber. Both values are text data. Use JOptionPanes to ask for the contact data, and display a confirmation message when the contact is added. Display the list of contacts in the console. Screenshots of a possible solution are included. 




Standard header included


Must contain program's name, student name, and description of the program

Program compiles


Program does not have any error

Program executes


Program runs without any error

Created the JOptionPanes for input


Two JOptionPanes are displayed to retrieve input

JOptionPane displayed upon insert


A JOptionPane is display to confirm the contact was added

ContactList shown in console


The list of contacts is displayed in the console under a heading contact list .


Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors