List of usage examples for javafx.scene.control TextField setMinWidth
public final void setMinWidth(double value)
From source file:io.bitsquare.gui.components.paymentmethods.BankForm.java
protected void addHolderNameAndIdForDisplayAccount() { String countryCode = bankAccountContractData.getCountryCode(); if (BankUtil.isHolderIdRequired(countryCode)) { Tuple4<Label, TextField, Label, TextField> tuple = addLabelTextFieldLabelTextField(gridPane, ++gridRow, "Account holder name:", BankUtil.getHolderIdLabel(countryCode)); TextField holderNameTextField = tuple.second; holderNameTextField.setText(bankAccountContractData.getHolderName()); holderNameTextField.setMinWidth(300); tuple.forth.setText(bankAccountContractData.getHolderTaxId()); } else {/* w w w . j ava 2s .com*/ addLabelTextField(gridPane, ++gridRow, "Account holder name:", bankAccountContractData.getHolderName()); } }
From source file:io.bitsquare.gui.components.paymentmethods.CashDepositForm.java
protected void addHolderNameAndIdForDisplayAccount() { String countryCode = cashDepositAccountContractData.getCountryCode(); if (BankUtil.isHolderIdRequired(countryCode)) { Tuple4<Label, TextField, Label, TextField> tuple = addLabelTextFieldLabelTextField(gridPane, ++gridRow, "Account holder name:", BankUtil.getHolderIdLabel(countryCode)); TextField holderNameTextField = tuple.second; holderNameTextField.setText(cashDepositAccountContractData.getHolderName()); holderNameTextField.setMinWidth(300); tuple.forth.setText(cashDepositAccountContractData.getHolderTaxId()); } else {/*w ww.ja v a2s . c o m*/ addLabelTextField(gridPane, ++gridRow, "Account holder name:", cashDepositAccountContractData.getHolderName()); } }