diff --git a/src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java b/src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java index dba332a5..8678d4b5 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java @@ -2,14 +2,12 @@ package com.sparrowwallet.sparrow.control; import javafx.scene.text.Font; -import java.awt.*; - -public class CopyableIdLabel extends CopyableLabel { - public CopyableIdLabel() { +public class IdLabel extends CopyableLabel { + public IdLabel() { this(""); } - public CopyableIdLabel(String text) { + public IdLabel(String text) { super(text); setFont(Font.font("Courier")); } diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index 99e4814a..564a5165 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -2,7 +2,7 @@ package com.sparrowwallet.sparrow.transaction; import com.sparrowwallet.drongo.protocol.Transaction; import com.sparrowwallet.sparrow.EventManager; -import com.sparrowwallet.sparrow.control.CopyableIdLabel; +import com.sparrowwallet.sparrow.control.IdLabel; import com.sparrowwallet.sparrow.control.CopyableLabel; import javafx.fxml.FXML; import javafx.fxml.Initializable; @@ -21,7 +21,7 @@ public class HeadersController extends TransactionFormController implements Init private HeadersForm headersForm; @FXML - private CopyableIdLabel id; + private IdLabel id; @FXML private Spinner version; diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java index dddd228e..cf1250f2 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java @@ -6,7 +6,7 @@ import com.sparrowwallet.drongo.crypto.ECKey; import com.sparrowwallet.drongo.protocol.*; import com.sparrowwallet.drongo.psbt.PSBTInput; import com.sparrowwallet.sparrow.EventManager; -import com.sparrowwallet.sparrow.control.CopyableIdLabel; +import com.sparrowwallet.sparrow.control.IdLabel; import com.sparrowwallet.sparrow.control.CopyableLabel; import com.sparrowwallet.sparrow.control.RelativeTimelockSpinner; import javafx.fxml.FXML; @@ -24,7 +24,6 @@ import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; -import java.util.List; import java.util.ResourceBundle; public class InputController extends TransactionFormController implements Initializable { @@ -34,7 +33,7 @@ public class InputController extends TransactionFormController implements Initia private Fieldset inputFieldset; @FXML - private CopyableIdLabel outpoint; + private IdLabel outpoint; @FXML private Button outpointSelect; @@ -46,7 +45,7 @@ public class InputController extends TransactionFormController implements Initia private CopyableLabel from; @FXML - private CopyableIdLabel address; + private IdLabel address; @FXML private CodeArea scriptSigArea; diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java index 2d3d92d1..5e31502d 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java @@ -3,7 +3,7 @@ package com.sparrowwallet.sparrow.transaction; import com.sparrowwallet.drongo.address.Address; import com.sparrowwallet.drongo.protocol.NonStandardScriptException; import com.sparrowwallet.drongo.protocol.TransactionOutput; -import com.sparrowwallet.sparrow.control.CopyableIdLabel; +import com.sparrowwallet.sparrow.control.IdLabel; import com.sparrowwallet.sparrow.control.CopyableLabel; import javafx.fxml.FXML; import javafx.fxml.Initializable; @@ -26,7 +26,7 @@ public class OutputController extends TransactionFormController implements Initi private CopyableLabel to; @FXML - private CopyableIdLabel address; + private IdLabel address; @FXML private CodeArea scriptPubKeyArea; diff --git a/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml b/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml index 65b7b925..e349b9ce 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml @@ -12,7 +12,7 @@ - + @@ -32,7 +32,7 @@
- +
diff --git a/src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml b/src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml index aae4649a..98d7ecd2 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml @@ -13,7 +13,7 @@ - + @@ -32,7 +32,7 @@
- +
diff --git a/src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml b/src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml index 546829dc..c33a55d1 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml @@ -12,7 +12,7 @@ - + @@ -33,7 +33,7 @@ - +