@Override
  public void loginSuccesfull(User user) {
    friendsPanel = new FriendsPanel(user.getFriends());
    friendsPanel.addLogoutButtonActionListener(new LogoutButtonAction());
    friendsPanel.addFriendsListMouseListener(new ClickOnFriendListItem());
    friendsPanel.addExitButtonActionListener(new ExitButton());
    friendsPanel.addAddFriendButtonActionListener(new AddFriendButton());
    client.registerFriendsManagerListener(friendsPanel);
    mainWindow.setContentPane(friendsPanel);
    mainWindow.setTitle(WINDOW_TITLE + " : " + client.getLoggedInUser().getName());
    mainWindow.revalidate();
    mainWindow.repaint();
  }