controlPanel.setEnabled(enabled);
passwordAction.setEnabled(enabled);
}
private void layoutComponents() {
JPanel p = new JPanel(new DialogLayout(10, 10));
layoutField(p, Strings.get("UserProfile.Label.Login"), loginField);
layoutField(p, null, createPasswordButton());
layoutField(p, Strings.get("UserProfile.Label.FirstName"), firstNameField);
layoutField(p, Strings.get("UserProfile.Label.LastName"), lastNameField);
layoutField(p, Strings.get("UserProfile.Label.Email"), emailField);