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 ad81b5f..031b6cc 100644 --- a/src/com.example.portfolio2/com/example/portfolio2/Controller.java +++ b/src/com.example.portfolio2/com/example/portfolio2/Controller.java @@ -64,9 +64,9 @@ class Controller{ } // Clears the text area and adds all activity names from activities in participation - void updateArea(ComboBox combo, TextArea textArea) { + void updateArea(ComboBox<String> combo, TextArea textArea) { textArea.clear(); - for(String s : model.getParticipation((String) combo.getValue())) { + for(String s : model.getParticipation(combo.getValue())) { textArea.appendText(s + "\n"); } } |