diff --git a/src/main/java/com/example/vpr_javafx/HelloController.java b/src/main/java/com/example/vpr_javafx/HelloController.java index 361a657..bf5ad6a 100644 --- a/src/main/java/com/example/vpr_javafx/HelloController.java +++ b/src/main/java/com/example/vpr_javafx/HelloController.java @@ -386,7 +386,7 @@ public class HelloController { @FXML - protected void getLabelValueWithRadio(ActionEvent event) + protected ArrayList getLabelValueWithRadio(ActionEvent event) { chosenMeals = new ArrayList<>(); String mainDish; @@ -456,6 +456,8 @@ public class HelloController { Alert alert = new Alert(Alert.AlertType.INFORMATION); alert.setContentText(chosenMeals.toString()); alert.show(); + + return chosenMeals; }