- fixed requestFocus of password field when entering wrong password

This commit is contained in:
Sebastian Stenzel
2014-12-24 15:12:54 +01:00
parent 5bbaf62c67
commit f4c7dc1bbd

View File

@@ -117,7 +117,7 @@ public class UnlockController implements Initializable {
setControlsDisabled(false);
progressIndicator.setVisible(false);
messageLabel.setText(rb.getString("unlock.errorMessage.wrongPassword"));
passwordField.requestFocus();
Platform.runLater(passwordField::requestFocus);
} catch (UnsupportedKeyLengthException ex) {
setControlsDisabled(false);
progressIndicator.setVisible(false);