Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
CREATE AN ADDRESS BOOK PROGRAM Here is what you will need to do to create your Address Book application
CREATE AN ADDRESS BOOK PROGRAM
Here is what you will need to do to create your Address Book application.
- In the MySQL Workbench server management application:
- Create a database if you have not already created one.
- Create a table called "addressbook" with the following fields
- ID as an Int, set to primary key, set AutoIncrement = yes
- FirstName as a varchar of length 30
- LastName as a varchar of length 30
- Address as a varchar of length 30
- City as a varchar of length 30
- State as a varchar of length 2
- ZipCode as a varchar of length 10
- Phone as a varchar of length 14
- In the Netbeans project, add the MySQL jar file to the project:
- Download the MySQL connector file from the MySQL website.
- Move only the MySQL connector file to the root of the NetBeans project folder.
- Right-click on Libraries and choose "Add JAR/Folder..."
- Navigate to the NetBeans project folder and select the MySQL connector file.
- Confirm that "Relative Path" is select and only the file name show (no ellipsis at all).
- Create a Contact class
- Allows you to pass around a single object instead of eight attributes in the methods
- Create a DataIO class to contain the database connection methods
- Create these constants and update the values based on your credentials:
- CONNECTION_STRING
- USER_NAME
- PASSWORD
- In the DataIO class, create the following methods and add the appropriate code:
- add( ) method receives a Contact object and write the information to the database
- getList( ) method gets all of the contacts from the database and returns an ArrayList with the contacts
- Create these constants and update the values based on your credentials:
- Create a GUI for your Address Book
- Add labels and textfields to get the input for the Contact information
- Add two buttons (Add Contact and Show Contacts)
- Add a JTable at the bottom to show the Contact records
- Add the code for the Add Contact button.
- When the user clicks the Add Contact button:
- Get the Contact info from the textfields
- Create a Contact object using the information
- Add the record to the database using the DataIO add( ) method.
- When the user clicks the Add Contact button:
- Add the code for the Show Contacts button.
- When the user clicks the Show Contacts button:
- Get all of the records from the database using the DataIO getAll( ) method
- Display the records in a textarea or JTable.
- When the user clicks the Show Contacts button:
Expert Solution
Please use this google drive link to download the answer file.
https://drive.google.com/file/d/10TlW7lM8qJE0Vor_ZxecnECZTcsaX3oI/view?usp=sharing
Note: If you have any trouble in viewing/downloading the answer from the given link, please use this below guide to understand the whole process.
https://helpinhomework.org/blog/how-to-obtain-answer-through-google-drive-link
Archived Solution
Unlocked Solution
You have full access to this solution. To save a copy with all formatting and attachments, use the button below.
Already a member? Sign In
Important Note:
This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.
For ready-to-submit work, please order a fresh solution below.
For ready-to-submit work, please order a fresh solution below.
Or get 100% fresh solution
Get Custom Quote





