@Override
  public void newFriendRequest(FriendRequest friendRequest) {
    int option = JOptionPane.showConfirmDialog(mainWindow, new JLabel(friendRequest.getFromName() + NEW_FRIEND_REQUST,
        JLabel.CENTER), "New Friend Request", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE);
    if (option == JOptionPane.YES_OPTION) {
      client.respondToFriendRequest(true, friendRequest);
    }
    if (option == JOptionPane.NO_OPTION) {
      client.respondToFriendRequest(false, friendRequest);
    }
  }