src/net/java/sip/communicator/impl/muc/MUCServiceImpl.java
/**
     * Joins the given chat room with the given password and manages all the
     * exceptions that could occur during the join process.
     *
     * @param chatRoomWrapper the chat room to join.
     * @param nickName the nickname we choose for the given chat room.
     * @param password the password.
     * @param rememberPassword if true the password should be saved.
     * @param isFirstAttempt is this the first attempt to join room, used
     *                       to check whether to show some error messages
     * @param subject the subject which will be set to the room after the user
     * join successful.
     */
Joins the given chat room with the given password and manages all the
exceptions that could occur during the join process.

@param chatRoomWrapper the chat room to join.
@param nickName the nickname we choose for the given chat room.
@param password the password.
@param rememberPassword if true the password should be saved.
@param isFirstAttempt is this the first attempt to join room, used
to check whether to show some error messages
@param subject the subject which will be set to the room after the user
join successful.
Joins the given chat room with the given password and manages all the exceptions that could occur during the join process . @param chatRoomWrapper the chat room to join . @param nickName the nickname we choose for the given chat room . @param password the password . @param rememberPassword if true the password should be saved . @param isFirstAttempt is this the first attempt to join room used to check whether to show some error messages @param subject the subject which will be set to the room after the user join successful .
private void joinChatRoom(   ChatRoomWrapper chatRoomWrapper,
                                String nickName,
                                byte[] password,
                                boolean rememberPassword,
                                boolean isFirstAttempt,
                                String subject)
    {
        ChatRoom chatRoom = chatRoomWrapper.getChatRoom();
        if(chatRoom == null)
        {
            MUCActivator.getAlertUIService().showAlertDialog(
                MUCActivator.getResources().getI18NString("service.gui.WARNING"),
                MUCActivator.getResources().getI18NString(
                "service.gui.CHAT_ROOM_NOT_CONNECTED",
                new String[]{chatRoomWrapper.getChatRoomName()}));
            return;
        }
        new JoinChatRoomTask(
                (ChatRoomWrapperImpl)chatRoomWrapper,
                nickName,
                password,
                rememberPassword,
                isFirstAttempt,
                subject)
            .start();
    }
private void joinChatRoom ( ChatRoomWrapper chatRoomWrapper , String nickName , byte [ ] password , boolean rememberPassword , boolean isFirstAttempt , String subject ) { ChatRoom chatRoom = chatRoomWrapper . getChatRoom ( ) ; if ( chatRoom == null ) { MUCActivator . getAlertUIService ( ) . showAlertDialog ( MUCActivator . getResources ( ) . getI18NString ( "service.gui.WARNING" ) , MUCActivator . getResources ( ) . getI18NString ( "service.gui.CHAT_ROOM_NOT_CONNECTED" , new String [ ] { chatRoomWrapper . getChatRoomName ( ) } ) ) ; return ; } new JoinChatRoomTask ( ( ChatRoomWrapperImpl ) chatRoomWrapper , nickName , password , rememberPassword , isFirstAttempt , subject ) . start ( ) ; }
Joins the given chat room with the given password and manages all the
 exceptions that could occur during the join process.
Joins the given chat room with the given password and manages all the exceptions that could occur during the join process .