private void showLoginDialog() {
   String message = "Please sign in with your username and password:"******"Login", message, "john");
   int returnCode = loginDialog.open();
   String resultText = "Result: " + getReturnCodeText(returnCode);
   if (returnCode == Window.OK) {
     String username = loginDialog.getUsername();
     String password = loginDialog.getPassword();
     String pwInfo = password == null ? "n/a" : password.length() + " chars";
     resultText += ", user: "******", password: " + pwInfo;
   }
   loginDlgResLabel.setText(resultText);
   loginDlgResLabel.pack();
 }