Skip to content

Commit

Permalink
Remove extra field from addFormForBuyer()
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Sep 14, 2019
1 parent f9687ad commit 7b5375b
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,24 +77,20 @@ public static int addFormForBuyer(GridPane gridPane, int gridRow, // {{{
{
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;
TextField bankTextField = addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.bank"), bankText).second;
bankTextField.setEditable(false);

String branchText = japanBankAccount.getBankBranchCode() + " " + japanBankAccount.getBankBranchName();
TextField branchTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText).second;
TextField branchTextField = addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText).second;
branchTextField.setEditable(false);

String accountText = japanBankAccount.getBankAccountType() + " " + japanBankAccount.getBankAccountNumber();
TextField accountTextField = addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText).second;
TextField accountTextField = addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText).second;
accountTextField.setEditable(false);

String accountNameText = japanBankAccount.getBankAccountName();
TextField accountNameTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText).second;
TextField accountNameTextField = addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText).second;
accountNameTextField.setEditable(false);

return gridRow;
Expand Down

0 comments on commit 7b5375b

Please sign in to comment.