boolean userOK(String entry){
  String[] titles={"Delete","Cancel"};
  return (JOptionPane.YES_OPTION == JOptionPane.showOptionDialog(_who,"Are you sure you want to delete roster group \"" + entry + "\"?","Delete Roster Group \"" + entry + "\"",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,null,titles,null));
}

boolean userOK ( String entry ) { String [ ] titles = { "Delete" , "Cancel" } ; return ( JOptionPane . YES_OPTION == JOptionPane . showOptionDialog ( _who , "Are you sure you want to delete roster group \"" + entry + "\"?" , "Delete Roster Group \"" + entry + "\"" , JOptionPane . YES_NO_OPTION , JOptionPane . QUESTION_MESSAGE , null , titles , null ) ) ; }
can provide some mechanism to prompt for user for one last chance to change his / her mind
