mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 15:26:03 -04:00
UI improvements
This commit is contained in:
parent
d88c0bc2e6
commit
18319bcb52
@ -110,7 +110,10 @@ public class CompletedView extends TradeStepDetailsView {
|
||||
withdrawAmountTextField = addLabelTextField(gridPane, gridRow, "Amount to withdraw:", "", Layout.FIRST_ROW_AND_GROUP_DISTANCE).second;
|
||||
withdrawAddressTextField = addLabelInputTextField(gridPane, ++gridRow, "Withdraw to address:").second;
|
||||
withdrawButton = addButtonAfterGroup(gridPane, ++gridRow, "Withdraw to external wallet");
|
||||
withdrawButton.setOnAction(e -> model.onWithdrawRequest(withdrawAddressTextField.getText()));
|
||||
withdrawButton.setOnAction(e -> {
|
||||
model.onWithdrawRequest(withdrawAddressTextField.getText());
|
||||
withdrawButton.setDisable(true);
|
||||
});
|
||||
|
||||
if (BitsquareApp.DEV_MODE)
|
||||
withdrawAddressTextField.setText("mwajQdfYnve1knXnmv7JdeiVpeogTsck6S");
|
||||
|
@ -19,8 +19,10 @@ package io.bitsquare.gui.popups;
|
||||
|
||||
import io.bitsquare.common.util.Tuple2;
|
||||
import javafx.collections.FXCollections;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.control.ComboBox;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.util.StringConverter;
|
||||
import org.bitcoinj.core.Transaction;
|
||||
import org.slf4j.Logger;
|
||||
@ -77,15 +79,17 @@ public class SelectDepositTxPopup extends Popup {
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
private void addContent() {
|
||||
addMultilineLabel(gridPane, ++rowIndex,
|
||||
Label label = addMultilineLabel(gridPane, ++rowIndex,
|
||||
"The deposit transaction was not stored in the trade.\n" +
|
||||
"Please select one of the existing MultiSig transactions from your wallet which was the " +
|
||||
"deposit transaction used in the failed trade.",
|
||||
10);
|
||||
|
||||
Tuple2<Label, ComboBox> tuple = addLabelComboBox(gridPane, ++rowIndex);
|
||||
GridPane.setMargin(label, new Insets(0, 0, 10, 0));
|
||||
|
||||
Tuple2<Label, ComboBox> tuple = addLabelComboBox(gridPane, ++rowIndex, "Select deposit transaction");
|
||||
transactionsComboBox = tuple.second;
|
||||
transactionsComboBox.setPromptText("Select deposit transaction");
|
||||
transactionsComboBox.setPromptText("Select");
|
||||
transactionsComboBox.setConverter(new StringConverter<Transaction>() {
|
||||
@Override
|
||||
public String toString(Transaction transaction) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user