Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void editName(java.awt.event.ActionEvent evt) {
- String newName = JOptionPane.showInputDialog(this, "Name", people.get(current).getFirstName());
- if (newName != null)
- people.get(current).setFirstName(newName);
- update(people.get(current));
- newName = JOptionPane.showInputDialog(this, "LastName", people.get(current).getLastName());
- if (newName != null)
- people.get(current).setLastName(newName);
- update(people.get(current));
- }
Add Comment
Please, Sign In to add comment