Пример #1
0
  public static Tuple3<Label, InputTextField, CheckBox> addLabelInputTextFieldCheckBox(
      GridPane gridPane, int rowIndex, String title, String checkBoxTitle) {
    Label label = addLabel(gridPane, rowIndex, title, 0);

    InputTextField inputTextField = new InputTextField();
    CheckBox checkBox = new CheckBox(checkBoxTitle);
    checkBox.setPadding(new Insets(6, 0, 0, 0));

    HBox hBox = new HBox();
    hBox.setSpacing(10);
    hBox.getChildren().addAll(inputTextField, checkBox);
    GridPane.setRowIndex(hBox, rowIndex);
    GridPane.setColumnIndex(hBox, 1);
    gridPane.getChildren().add(hBox);

    return new Tuple3<>(label, inputTextField, checkBox);
  }