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

  Correct example of inheritance

Which of the following relationships is not a correct example of inheritance?  Parent to Children  Aunt to Uncle  Grandparent to Grandchild

  A game of tic-tac-toe

A game of tic-tac-toe, two players (one the computer) take turns marking an available cell in a 3 X 3 grid (a two dimensional array) with their respective tokens (either and X or an O). When one player has placed three tokens in a horizontal

  Design and implement a small and simple email server

Design and implement a small and simple email server using the concept of web based information system (WBIS).

  Method that receives an array and returns with no duplicate

Write a program that contrains a method that receives an array and returns a new array with no duplicates.

  Design a java program that has two parallel arrays

Design a java program that has two parallel arrays: a string array named people that is initialized with the names of seven of your friends, and a string array named phoneNumbers that is initialized with your friends phone numbers.

  What are the merits and demerits of the use of mainframes

write a 200- to 300-word short-answer response to the followingwhat are the advantages and disadvantages of the use of

  Write complete java program to read from keyboard

Write complete Java program to read, from keyboard, a student's first and last name and six grades. It will display on screen last name then first letter of first name with a period.

  Create a class called scorelist according to the uml diagram

Create a class called ScoreList according to the UML diagram. This class will allow a user to enter up to 100 scores into an array.

  Develops algorithms for problem solving

The graduate designs and develops algorithms for problem solving and implements those algorithms using appropriate program code.

  Write a program that prompts the user to enter an integer

Using && and || write a program that prompts the user to enter an integer and determine whether it is: Evenly divisible by 5 AND 6.

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

  Java program to print strings given at command line

Write down program Average.java to print strings which it is given at command line, one per line. If nothing is given at command line, then print "No arguments".

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