public static Tuple2<Label, RadioButton> addLabelRadioButton( GridPane gridPane, int rowIndex, ToggleGroup toggleGroup, String title, String radioButtonTitle) { Label label = addLabel(gridPane, rowIndex, title, 0); RadioButton radioButton = new RadioButton(radioButtonTitle); radioButton.setToggleGroup(toggleGroup); radioButton.setPadding(new Insets(6, 0, 0, 0)); GridPane.setRowIndex(radioButton, rowIndex); GridPane.setColumnIndex(radioButton, 1); gridPane.getChildren().add(radioButton); return new Tuple2<>(label, radioButton); }