From 1a452db4cf8d51f08f4f194b254288429563f4b9 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 24 May 2021 12:27:30 +0200 Subject: [PATCH] add tooltip to send utxos button with directions on how to select multiple utxos --- .../java/com/sparrowwallet/sparrow/wallet/UtxosController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java index 16311c8e..0df38dca 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java @@ -16,6 +16,7 @@ import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; +import javafx.scene.control.Tooltip; import java.net.URL; import java.util.List; @@ -44,6 +45,7 @@ public class UtxosController extends WalletFormController implements Initializab utxosTable.initialize(getWalletForm().getWalletUtxosEntry()); utxosChart.initialize(getWalletForm().getWalletUtxosEntry()); sendSelected.setDisable(true); + sendSelected.setTooltip(new Tooltip("Send selected UTXOs. Use " + (org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.OSX ? "Cmd" : "Ctrl") + "+click to select multiple." )); utxosTable.getSelectionModel().getSelectedIndices().addListener((ListChangeListener) c -> { List selectedEntries = utxosTable.getSelectionModel().getSelectedCells().stream().map(tp -> tp.getTreeItem().getValue()).collect(Collectors.toList());