From 16b15abe22a3f0d5babbe97b0d4435bedd40b706 Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Fri, 13 Mar 2026 14:48:02 +0100 Subject: [PATCH 01/66] Fixed main class configuration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85afbce..0f3156b 100644 --- a/pom.xml +++ b/pom.xml @@ -62,7 +62,7 @@ javafx-maven-plugin 0.0.8 - ui.GiveHopeGIU + app.Main From 2f7251866013bfaf37731f3eb307b6b58973de7b Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Fri, 13 Mar 2026 14:48:44 +0100 Subject: [PATCH 02/66] Removed unnecessary file --- src/main/java/app/GiveHopeApp.java | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 src/main/java/app/GiveHopeApp.java diff --git a/src/main/java/app/GiveHopeApp.java b/src/main/java/app/GiveHopeApp.java deleted file mode 100644 index 9738139..0000000 --- a/src/main/java/app/GiveHopeApp.java +++ /dev/null @@ -1,4 +0,0 @@ -package app; - -public class GiveHopeApp { -} From 6b345692b08f8151f5254b2220810317da6a4e40 Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Fri, 13 Mar 2026 14:48:48 +0100 Subject: [PATCH 03/66] Removed unnecessary file --- src/main/java/ui/GiveHopeGIU.java | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/main/java/ui/GiveHopeGIU.java diff --git a/src/main/java/ui/GiveHopeGIU.java b/src/main/java/ui/GiveHopeGIU.java deleted file mode 100644 index 2617122..0000000 --- a/src/main/java/ui/GiveHopeGIU.java +++ /dev/null @@ -1,23 +0,0 @@ -package ui; - -import javafx.application.Application; -import javafx.fxml.FXMLLoader; -import javafx.scene.Scene; -import javafx.stage.Stage; - -public class GiveHopeGIU extends Application { - - @Override - public void start(Stage stage) throws Exception { - FXMLLoader loader = new FXMLLoader(getClass().getResource("/ui/home.fxml")); - Scene scene = new Scene(loader.load(), 600, 400); - - stage.setTitle("GiveHope"); - stage.setScene(scene); - stage.show(); - } - - public static void main(String[] args) { - launch(); - } -} \ No newline at end of file From 3edb5877c3adfbb2594519982cc95d0149982cf6 Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Fri, 13 Mar 2026 15:13:44 +0100 Subject: [PATCH 04/66] Class to move between scenes --- src/main/java/app/SceneManager.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/java/app/SceneManager.java diff --git a/src/main/java/app/SceneManager.java b/src/main/java/app/SceneManager.java new file mode 100644 index 0000000..0f69043 --- /dev/null +++ b/src/main/java/app/SceneManager.java @@ -0,0 +1,21 @@ +package app; + +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.stage.Stage; + +import java.io.IOException; + +public class SceneManager { + + private static Stage stage; + + public static void setStage(Stage s) { + stage = s; + } + + public static void switchTo(String fxmlPath) throws IOException { + Parent root = FXMLLoader.load(SceneManager.class.getResource(fxmlPath)); + stage.getScene().setRoot(root); + } +} \ No newline at end of file From 9ff4e73fa4f73c0f54cd5463776c2cc2bb9b3fba Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Fri, 13 Mar 2026 15:14:36 +0100 Subject: [PATCH 05/66] Changed name to big capital letter --- src/main/resources/ui/home.fxml | 31 ------------------------------- src/main/resources/ui/signIn.fxml | 30 ------------------------------ 2 files changed, 61 deletions(-) delete mode 100644 src/main/resources/ui/home.fxml delete mode 100644 src/main/resources/ui/signIn.fxml diff --git a/src/main/resources/ui/home.fxml b/src/main/resources/ui/home.fxml deleted file mode 100644 index 5028391..0000000 --- a/src/main/resources/ui/home.fxml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - + + + + + + + + + From 84cf18f38d93dfd1593188a4590f96baee86b09e Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Tue, 24 Mar 2026 15:43:28 +0100 Subject: [PATCH 38/66] feat: add MyProfileController --- src/main/java/ui/controller/MyProfileController.java | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/main/java/ui/controller/MyProfileController.java diff --git a/src/main/java/ui/controller/MyProfileController.java b/src/main/java/ui/controller/MyProfileController.java new file mode 100644 index 0000000..133f5eb --- /dev/null +++ b/src/main/java/ui/controller/MyProfileController.java @@ -0,0 +1,4 @@ +package ui.controller; + +public class MyProfileController { +} From b80dbbfd619fc221add50f498bb6af1075479895 Mon Sep 17 00:00:00 2001 From: Marius Klepp Date: Tue, 24 Mar 2026 15:45:32 +0100 Subject: [PATCH 39/66] feat: add NavbarController with navigation and Navbar FXML layout --- .../java/ui/controller/NavbarController.java | 12 ++++++++++++ src/main/resources/fxml/Navbar.fxml | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/main/java/ui/controller/NavbarController.java create mode 100644 src/main/resources/fxml/Navbar.fxml diff --git a/src/main/java/ui/controller/NavbarController.java b/src/main/java/ui/controller/NavbarController.java new file mode 100644 index 0000000..751de42 --- /dev/null +++ b/src/main/java/ui/controller/NavbarController.java @@ -0,0 +1,12 @@ +package ui.controller; + +import app.SceneManager; +import javafx.event.ActionEvent; + +public class NavbarController { + + @javafx.fxml.FXML + private void handleGoHome(ActionEvent event) throws Exception { + SceneManager.switchTo("/fxml/Home.fxml"); + } +} diff --git a/src/main/resources/fxml/Navbar.fxml b/src/main/resources/fxml/Navbar.fxml new file mode 100644 index 0000000..af9d6cd --- /dev/null +++ b/src/main/resources/fxml/Navbar.fxml @@ -0,0 +1,19 @@ + + + + + + + + + + + +