The JXLoginDialog constructor takes three parameters. The first one is a LoginService object, which is responsible for authetication. The others are used to store user data (username, password). In our example a HashMap is used to implement UserNameStore and PasswordStore. If you don't need this functionality these paramaters can also be null.
All relevant lines are highlighted. Press the "Run..." button to start the example.