Operation This application begins by displaying a table of customer data. If the
ID: 3580190 • Letter: O
Question
Operation
This application begins by displaying a table of customer data.
If the user clicks the Add button, the application allows the user to add customer data to the table (and the underlying database).
If the user selects a customer row and clicks the Edit button, the application allows the user to update the data for the selected customer row in the table (and the database).
If the user selects a customer row and clicks the Delete button, the application deletes the selected customer row from the table (and the database).
Specifications
Create a table in the mma database described in chapter 19 to store the necessary data. To do that, you can use the SQL script stored in the create_customer_table.sql file that’s supplied. If this script isn’t supplied, you can create your own SQL script.
Create a class named Customer that stores data for the user’s id, email address, first name, and last name.
Create a class named CustomerDB that contains the methods necessary to get an array list of Customer objects, to get a Customer object for the customer with the specified id, and to add, update, or delete the specified customer.
Create a CustomerManagerFrame class like the one shown above. This frame should display a table of customer data as well as the Add, Edit, and Delete buttons. This class should use the Customer and CustomerDB classes to work with the customer data.
Create a CustomerForm class that allows the user to add or edit customer data.
Create a Java Customer Management program with NetBeans that satisfies the specifications above.
Show transcribed image text
Explanation / Answer
Solution:
Create table in SQL :
In java ,
GUI frontend :
with JDBC :
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.