Search in sources :

Example 1 with SearchComboBox

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

the class FormBuilder method addLabelSearchComboBox.

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

Aggregations

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