From 4b65e37914f279d35ef1731059546472571e7506 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 7 Oct 2014 22:38:09 +0200 Subject: [PATCH] Focus the password field. --- .../src/main/java/wallettemplate/WalletPasswordController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java index 359f3ba2..371079aa 100644 --- a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java +++ b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java @@ -1,5 +1,6 @@ package wallettemplate; +import javafx.application.Platform; import org.bitcoinj.crypto.KeyCrypterScrypt; import com.google.common.primitives.Longs; import com.google.protobuf.ByteString; @@ -43,6 +44,7 @@ public class WalletPasswordController { public void initialize() { progressMeter.setOpacity(0); + Platform.runLater(pass1::requestFocus); } @FXML void confirmClicked(ActionEvent event) {