Write a gui program that maintains a set of contacts

Assignment Help JAVA Programming
Reference no: EM13524321

Write a GUI program that maintains a set of contacts. Each contact has name, address, and a list of phone numbers. This contacts should be be stored in a HashMap. When the program starts up and the empty map will be treated initially. Then the program should present the user with a main window with buttons that will allow the user to add, search, and delete records.

Also, it will allow the user to navigate from record to record. That is, allow the user to locate the first, next, previous, and last records. The "current record" in the list is the record that was most recently referenced (added or navigation). At program start-up, the current record is undefined.

Create the method that will allow the user to add new record. If the user clicks 'Add' button, the program should show a dialog for a name, address, and telephone number. Upon receipt of this information, a new record is added to the list.

If the user clicks 'delete', the program should delete the current entry from the list. (If the current record is undefined, the program should issue an error message.) After a record is deleted, the current record is undefined. Create the method that will allow the user to delete the current record.

If the user clicks 'search', the program should prompt for a name to be searched for. It then should search through the list for a record with a matching name and display the name, address and telephone number to the list box. Write the code for the methods to locate and display the first, previous, next, and last record in the list. Use care so that the end user cannot locate the next record when the last record is the current record. And display the name, address and telephone number in a list box on the main window.

Reference no: EM13524321

Questions Cloud

What is the magnitude of the couples displacement : One afternoon, a couple walks three-fourths of the way around a circular lake, the radius of which is 1.46 km. What is the magnitude of the couple's displacement
Obtain the magnitude of the electric field at the origin : In a rectangular coordinate system a positive point charge q = 6.00 * 10^-9 C is placed at the point x = +0.150m , y = 0, Find the magnitude of the electric field at the origin
Determine the angular momentum of the ball : A small ball with a mass of 0.06 kg moves along a circular orbit with a radius of 0.5 m at a speed of 3.0 m/s. What is the angular momentum of the ball
Calculate the speed of the aircraft : A plane, diving with constant speed at an angle of 54.0° with the vertical, releases a projectile at an altitude of 890 m. The projectile hits the ground 6.00 s after release. What is the speed of the aircraft
Write a gui program that maintains a set of contacts : Write a GUI program that maintains a set of contacts. Each contact has name, address, and a list of phone numbers. This contacts should be be stored in a HashMap
Obtain what is the focal length of the mirror : Shaving/make-up mirrors typically have one flat and one concave (magnifying) surface. What is the focal length of the mirror
Why organisations should invest in hrm : Incorporate and comment on the ideas of the previous presenter in your presentation - critically analyse,agree or disagree with their points and give constructive feedback on the presentation - Why organisations should invest in human resources devel..
Calculate the electric field at the center of a square : Find the electric field at the center of a square of side d = 1.0 cm with charges of q = +9.0 µC at each corner
Find the area of the room retaining : A carpet is to be installed in a room of length 8.74 m and width 5.8 m. Find the area of the room retaining the proper number of significant figures

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd