Question: Modify the program of Exercise 24.7 to include a method named deletePerson in class PersonQueries. The method should delete an existing entry in the database.

Modify the program of Exercise 24.7 to include a method named deletePerson in class PersonQueries. The method should delete an existing entry in the database. Provide a Delete Button. When the user presses this Button, an event handler in the controller class should call PersonQueries method deletePerson to remove the currently selected contact, then update the ListView with the current set of entries in the database and select the first entry.

Exercise 24.7

Modify the program to include a method named updatePerson in class PersonQueries. The method should update an existing entry in the database. Provide an Update Button. When the user presses this Button, an event handler in the controller class should call PersonQueries method updatePerson to update the currently displayed contact with the data in the TextFields.

Step by Step Solution

3.44 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

From the question it appears that youre working with a database through Java program which involves the class PersonQueries for manipulating data I as... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!