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.
     */
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.
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 .
public void joinChatRoom(   ChatRoomWrapper chatRoomWrapper,
                                String nickName,
                                byte[] password)
    {
        if (chatRoomWrapper.getChatRoom() == null)
        {
            chatRoomWrapper = createChatRoom(
                chatRoomWrapper.getChatRoomName(),
                chatRoomWrapper.getParentProvider().getProtocolProvider(),
                new ArrayList<String>(), "", false, false, true);
        }
        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)
            .start();
    }
public void joinChatRoom ( ChatRoomWrapper chatRoomWrapper , String nickName , byte [ ] password ) { if ( chatRoomWrapper . getChatRoom ( ) == null ) { chatRoomWrapper = createChatRoom ( chatRoomWrapper . getChatRoomName ( ) , chatRoomWrapper . getParentProvider ( ) . getProtocolProvider ( ) , new ArrayList < String > ( ) , "" , false , false , true ) ; } 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 ) . 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 .