Leave the UserID field enabled when it wasn't completely filled

cusax-fix
Ingo Bauersachs 13 years ago
parent d31b9ee581
commit 88014ce28e

@ -42,7 +42,7 @@ public class AccountPanel
private final JPanel emptyPanel = new TransparentPanel();
private final JTextField userIDField = new TrimTextField();
final JTextField userIDField = new TrimTextField();
private final JPasswordField passField = new JPasswordField();
@ -317,7 +317,6 @@ String getUsername()
void setUsername(String username)
{
userIDField.setText(username);
userIDField.setEnabled(false);
}
/**

@ -377,6 +377,7 @@ public boolean commitPage(JabberAccountRegistration registration)
public void loadAccount(JabberAccountRegistration accountReg)
{
accountPanel.setUsername(accountReg.getUserID());
accountPanel.userIDField.setEnabled(false);
String password = accountReg.getPassword();
accountPanel.setPassword(password);

Loading…
Cancel
Save