+ // Make listener to react to ok being pressed
+ ActionListener okActionListener = new ActionListener() {
+ public void actionPerformed(ActionEvent e)
+ {
+ // Check for empty name
+ if (_nameField.getText().length() > 0)
+ {
+ // update App with edit
+ confirmEdit();
+ _dialog.dispose();
+ }
+ }
+ };