Example usage for javafx.scene.control TextField setMinWidth

List of usage examples for javafx.scene.control TextField setMinWidth

Introduction

In this page you can find the example usage for javafx.scene.control TextField setMinWidth.

Prototype

public final void setMinWidth(double value) 

Source Link

Usage

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());
    }
}