diff options
-rw-r--r-- | src/com.example.portfolio2/com/example/portfolio2/Controller.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/Controller.java b/src/com.example.portfolio2/com/example/portfolio2/Controller.java index cf98c3c..ad81b5f 100644 --- a/src/com.example.portfolio2/com/example/portfolio2/Controller.java +++ b/src/com.example.portfolio2/com/example/portfolio2/Controller.java @@ -33,13 +33,13 @@ class Controller{ area.clear(); // Clear text area // Fill activity box using model method - select.getItems().addAll(model.selectProgram((String) combo.getValue())); + select.getItems().addAll(model.selectProgram(combo.getValue())); } void onActivitySelected(ComboBox<String> combo, ComboBox<String> select, TextArea area) { // Passes the value chosen in the box - addActivity((String) select.getValue(), area); + addActivity(select.getValue(), area); // Updates the text area based on the category choice // users can choose from the ComboBox, string (activity) and the area would update. |