keep the monospaced font of utxo addresses when the table is refreshed
What changed, and why it matters
This is a minor user-interface bug fix. It ensures that Bitcoin addresses in the wallet's UTXO list keep their fixed-width (monospaced) font after the table is refreshed. There is no security issue here.
No security action needed. This is a routine UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit moves getStyleClass().add("address-cell") from inside the non-empty branch to before the empty check, so the CSS style class is always applied to the table cell. Previously, when a JavaFX ListCell was recycled and the row was refreshed, the style class could be lost, causing the address to render in the default proportional font instead of the intended monospaced font. This is purely a UI styling correction.
Changed components
src/main/java/com/sparrowwallet/sparrow/control/AddressCell.javaInspect captured patch +2 / −1
### src/main/java/com/sparrowwallet/sparrow/control/AddressCell.java
@@ -32,6 +32,8 @@ protected void updateItem(UtxoEntry.AddressStatus addressStatus, boolean empty)
UtxoEntry utxoEntry = addressStatus == null ? null : addressStatus.getUtxoEntry();
EntryCell.applyRowStyles(this, utxoEntry);
+ //Kept through empty updates, as the row styles are applied to a refilled cell according to whether it already has this class
+ getStyleClass().add("address-cell");
setContextMenu(null);
if (empty) {
@@ -47,7 +49,6 @@ protected void updateItem(UtxoEntry.AddressStatus addressStatus, boolean empty)
tooltip.setShowDelay(Duration.millis(250));
tooltip.setText(getTooltipText(utxoEntry, addressStatus.isDuplicate(), addressStatus.isDustAttack()));
setTooltip(tooltip);
- getStyleClass().add("address-cell");
if(addressStatus.isDustAttack()) {
setGraphic(getDustAttackHyperlink(utxoEntry));Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.