summaryrefslogtreecommitdiff
path: root/src/com.example.portfolio2/com/example/portfolio2/Window.java
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-29 16:31:32 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-29 16:31:45 +0200
commit5c5a039691d2a18d198e0ea5b13ed53103cc66ff (patch)
tree9f886c048a41c97996744f4c4094b6e04b7d81c5 /src/com.example.portfolio2/com/example/portfolio2/Window.java
parentd34ce20410e65e43e466e55172d161aad777cd76 (diff)
move hardcoded subject module list to class Database
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/Window.java')
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/Window.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/Window.java b/src/com.example.portfolio2/com/example/portfolio2/Window.java
index 0c375fa..fa8d2f9 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/Window.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/Window.java
@@ -64,10 +64,6 @@ public final class Window extends Application {
new ActivityColumn("Elective")
);
- // define list of subject modules
- List<String> subjectModules = List.of(
- "Computer Science", "Informatik", "Astrology");
-
// define button functionality for each activity column
for (ActivityColumn col : columns) {
col.nameLabel.setStyle(LABEL_STYLE);
@@ -111,8 +107,7 @@ public final class Window extends Application {
con.onSubjectModuleSelected(
col.categoryCombo,
columns.get(2)
- .categoryCombo,
- subjectModules);
+ .categoryCombo);
con.onCategorySelected(
col.categoryCombo,
col.activitySelect,
@@ -129,8 +124,7 @@ public final class Window extends Application {
con.onSubjectModuleSelected(
col.categoryCombo,
columns.get(1)
- .categoryCombo,
- subjectModules);
+ .categoryCombo);
con.onCategorySelected(
col.categoryCombo,
col.activitySelect,