userName = new TextBox();
userName.setWidth("200");
userPassword = new PasswordTextBox();
userPassword.setWidth("200");
UserInfo userInfo = CookieMan.getUserInfo();
if ( userInfo != null ) {
userName.setText(userInfo.getUsername());
if ( userInfo.getPassword() != null ) {
userPassword.setText(userInfo.getPassword());
rememberMeCheckBox.setChecked(true);
}
}
}