From 88014ce28ed1383210d0fe1bf0c0d05a93c50009 Mon Sep 17 00:00:00 2001 From: Ingo Bauersachs Date: Sat, 10 Aug 2013 18:13:51 +0200 Subject: [PATCH] Leave the UserID field enabled when it wasn't completely filled --- .../sip/communicator/plugin/jabberaccregwizz/AccountPanel.java | 3 +-- .../plugin/jabberaccregwizz/JabberAccountRegistrationForm.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java index a7947d11c..2c5d7552d 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java @@ -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); } /** diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java index 1e6b0faa1..a680966ae 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java @@ -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);