src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java
/**
     * Creates an account.
     *
     * @return the created account
     */
Creates an account.
@return the created account
Creates an account . @return the created account
public NewAccount createAccount()
    {
        String userID = userIDField.getText();
        char[] password = passField.getPassword();
        char[] password2 = pass2Field.getPassword();
        String server = serverField.getText();
        int port = 5222; 
        try
        {
            port = Integer.parseInt(portField.getText());
        }
        catch (NumberFormatException e){}
        if (new String(password).equals(new String(password2)))
        {
            boolean result = createJabberAccount(server,
                port,
                userID,
                new String(password));
            if (result == true)
            {
                return new NewAccount(
                    getCompleteUserID(userID, server),
                    password,
                    server, 
                    String.valueOf(port));
            }
        }
        else
        {
            showErrorMessage(Resources.getString(
                    "plugin.jabberaccregwizz.NOT_SAME_PASSWORD"));
        }
        return null;
    }
public NewAccount createAccount ( ) { String userID = userIDField . getText ( ) ; char [ ] password = passField . getPassword ( ) ; char [ ] password2 = pass2Field . getPassword ( ) ; String server = serverField . getText ( ) ; int port = 5222 ; try { port = Integer . parseInt ( portField . getText ( ) ) ; } catch ( NumberFormatException e ) { } if ( new String ( password ) . equals ( new String ( password2 ) ) ) { boolean result = createJabberAccount ( server , port , userID , new String ( password ) ) ; if ( result == true ) { return new NewAccount ( getCompleteUserID ( userID , server ) , password , server , String . valueOf ( port ) ) ; } } else { showErrorMessage ( Resources . getString ( "plugin.jabberaccregwizz.NOT_SAME_PASSWORD" ) ) ; } return null ; }
Creates an account.
Creates an account .
// default port  // custom port, if exists // the two password fields are the same