Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a Java Swing Program. I am looking for simple program nothing complicated. Prepare the project below. Only write the action performed methods

This is a Java Swing Program. I am looking for simple program nothing complicated.

" Prepare the project below. Only write the action performed methods for the buttons. You can make use of a model class for contacts. Database name will be MyCompany and the table is Contact. Database connections should be created accordingly."

1- When "Get List" button is clicked, all the contacts from Contact table of the database named MyCompany will be retrieved and shown in the jtable.

2- When Delete button is clicked, selected contact or contacts will be deleted from Contact table in MyCompany database without creation a new contact. Be careful that multiple number of contacts can also be deleted with this button. Contacts should be deleted from jtable as well image text in transcribed

3- When "New" button is clicked, New Contact page will be opened and with the Save button in it, a new contact will be created and saved into Contact table in MyCompany database.

image text in transcribed

4- When this button is clicked, Edit Contact page will be opened and with the Save button in it, selected contact from jtable will be edited and saved into Contact table in MyCompany database without creating a new contact.

image text in transcribed

Thank you

Contacts Contact List Get List ID Name Surname Phone E-Mail 1 Eric Hall 0533234541 erich@gmail.com 2 Lisa Gray 05379808766 lisag@gmail.com 3 Lucy Melii 05329871122 lucym@xyz.com 4 Tom Fatty 05443421278 tomf@hotmail.co. 5 Dan Tims 05543246578 timsd@abc.com 6 Joe Roll 05457658778 joeroll@gmail.co... UAWN New Edit Delete Exit New Contact ID Name Surname Phone E-Mail Save We Edit Contact ID 5 Name Dan Surname Tims Phone 05543246578 E-Mail timsd@abc.com Save

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago

Question

b. Will there be one assigned leader?

Answered: 1 week ago