|
|
@ -7,6 +7,7 @@ import javafx.application.Platform; |
|
|
|
import javafx.scene.control.ButtonType; |
|
|
|
import javafx.scene.control.Dialog; |
|
|
|
import javafx.scene.control.DialogPane; |
|
|
|
import javafx.scene.control.Label; |
|
|
|
import javafx.scene.layout.VBox; |
|
|
|
import org.controlsfx.control.textfield.CustomPasswordField; |
|
|
|
import org.controlsfx.control.textfield.TextFields; |
|
|
@ -24,7 +25,7 @@ public class KeystorePassphraseDialog extends Dialog<String> { |
|
|
|
|
|
|
|
final DialogPane dialogPane = getDialogPane(); |
|
|
|
setTitle("Keystore Passphrase" + (walletName != null ? " - " + walletName : "")); |
|
|
|
dialogPane.setHeaderText("Please enter the passphrase for keystore: \n" + keystore.getLabel()); |
|
|
|
dialogPane.setHeaderText("Enter the BIP39 passphrase\nfor keystore: " + keystore.getLabel()); |
|
|
|
dialogPane.getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm()); |
|
|
|
AppServices.setStageIcon(dialogPane.getScene().getWindow()); |
|
|
|
dialogPane.getButtonTypes().addAll(ButtonType.CANCEL, ButtonType.OK); |
|
|
@ -40,6 +41,13 @@ public class KeystorePassphraseDialog extends Dialog<String> { |
|
|
|
content.setPrefHeight(50); |
|
|
|
content.getChildren().add(passphrase); |
|
|
|
|
|
|
|
Glyph warnGlyph = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.EXCLAMATION_TRIANGLE); |
|
|
|
warnGlyph.getStyleClass().add("warn-icon"); |
|
|
|
warnGlyph.setFontSize(12); |
|
|
|
Label warnLabel = new Label("A BIP39 passphrase is not a wallet password!", warnGlyph); |
|
|
|
warnLabel.setGraphicTextGap(5); |
|
|
|
content.getChildren().add(warnLabel); |
|
|
|
|
|
|
|
dialogPane.setContent(content); |
|
|
|
Platform.runLater(passphrase::requestFocus); |
|
|
|
|
|
|
|