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