Modify the program of Exercise 24.7 to include a method named deletePerson in class PersonQueries. The method
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. 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 Answer:
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates