Question
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
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.
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.
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 SaveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started