diff --git a/src/main/java/com/sparrowwallet/sparrow/control/SearchWalletDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/SearchWalletDialog.java index f2d11257..a217eb09 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/SearchWalletDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/SearchWalletDialog.java @@ -81,6 +81,7 @@ public class SearchWalletDialog extends Dialog { results.setUnitFormat(walletForms.iterator().next().getWallet()); results.setColumnResizePolicy(TreeTableView.CONSTRAINED_RESIZE_POLICY); results.setPlaceholder(new Label("No results")); + results.setEditable(true); if(showWallet) { TreeTableColumn walletColumn = new TreeTableColumn<>("Wallet"); @@ -117,7 +118,7 @@ public class SearchWalletDialog extends Dialog { labelCol.setCellValueFactory((TreeTableColumn.CellDataFeatures param) -> { return param.getValue().getValue().labelProperty(); }); - labelCol.setCellFactory(p -> new SearchLabelCell()); + labelCol.setCellFactory(p -> new LabelCell()); results.getColumns().add(labelCol); TreeTableColumn amountCol = new TreeTableColumn<>("Value"); @@ -267,12 +268,4 @@ public class SearchWalletDialog extends Dialog { setContextMenu(null); } } - - private static class SearchLabelCell extends LabelCell { - @Override - public void updateItem(String label, boolean empty) { - super.updateItem(label, empty); - setContextMenu(null); - } - } }