Search in sources :

Example 1 with BsqAddressTextField

use of bisq.desktop.components.BsqAddressTextField in project bisq-desktop by bisq-network.

the class FormBuilder method addLabelBsqAddressTextField.

public static Tuple2<Label, BsqAddressTextField> addLabelBsqAddressTextField(GridPane gridPane, int rowIndex, String title, double top) {
    Label label = addLabel(gridPane, rowIndex, title, top);
    BsqAddressTextField addressTextField = new BsqAddressTextField();
    GridPane.setRowIndex(addressTextField, rowIndex);
    GridPane.setColumnIndex(addressTextField, 1);
    GridPane.setMargin(addressTextField, new Insets(top, 0, 0, 0));
    gridPane.getChildren().add(addressTextField);
    return new Tuple2<>(label, addressTextField);
}
Also used : Insets(javafx.geometry.Insets) Tuple2(bisq.common.util.Tuple2) AutoTooltipLabel(bisq.desktop.components.AutoTooltipLabel) Label(javafx.scene.control.Label) BsqAddressTextField(bisq.desktop.components.BsqAddressTextField)

Aggregations

Tuple2 (bisq.common.util.Tuple2)1 AutoTooltipLabel (bisq.desktop.components.AutoTooltipLabel)1 BsqAddressTextField (bisq.desktop.components.BsqAddressTextField)1 Insets (javafx.geometry.Insets)1 Label (javafx.scene.control.Label)1