From cf2158062b77cbcaef8c2a08acc0e80e74764191 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 15 Sep 2019 03:39:03 +0900 Subject: [PATCH] Remove extra field from JapanBankTransferForm::addFormForBuyer() --- .../paymentmethods/JapanBankTransferForm.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/components/paymentmethods/JapanBankTransferForm.java b/desktop/src/main/java/bisq/desktop/components/paymentmethods/JapanBankTransferForm.java index 9cf82fdc38..b40ff7c269 100644 --- a/desktop/src/main/java/bisq/desktop/components/paymentmethods/JapanBankTransferForm.java +++ b/desktop/src/main/java/bisq/desktop/components/paymentmethods/JapanBankTransferForm.java @@ -77,25 +77,17 @@ public class JapanBankTransferForm extends PaymentMethodForm { JapanBankAccountPayload japanBankAccount = ((JapanBankAccountPayload) paymentAccountPayload); - addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, - Res.get("payment.account.owner"), - ((JapanBankAccountPayload) paymentAccountPayload).getBankName()); - String bankText = japanBankAccount.getBankCode() + " " + japanBankAccount.getBankName(); - TextField bankTextField = addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.japan.bank"), bankText).second; - bankTextField.setEditable(false); + addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.bank"), bankText); String branchText = japanBankAccount.getBankBranchCode() + " " + japanBankAccount.getBankBranchName(); - TextField branchTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText).second; - branchTextField.setEditable(false); + addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText); String accountText = japanBankAccount.getBankAccountType() + " " + japanBankAccount.getBankAccountNumber(); - TextField accountTextField = addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText).second; - accountTextField.setEditable(false); + addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText); String accountNameText = japanBankAccount.getBankAccountName(); - TextField accountNameTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText).second; - accountNameTextField.setEditable(false); + addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText); return gridRow; } // }}}