void requestQuit(final User user){
  if (!user.stopped()) {
    user.stopMovement();
  }
  quitDialog.center();
  quitDialog.setVisible(true);
  yesButton.requestFocusInWindow();
}

void requestQuit ( final User user ) { if ( ! user . stopped ( ) ) { user . stopMovement ( ) ; } quitDialog . center ( ) ; quitDialog . setVisible ( true ) ; yesButton . requestFocusInWindow ( ) ; }
request quit confirmation from the user . this stops all player actions and shows a dialog in which the player can confirm that they really wants to quit the program . if so it flags the client for termination .
