From 171d89f6915d3e96f7ac7d46df31dc4c3f588e86 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 13 Jan 2025 19:54:35 +0100 Subject: [PATCH] schnitzerlbrot --- .../src/main/java/com/example/CartController.java | 5 +++++ .../src/main/java/com/example/CheckOutController.java | 5 +++++ .../src/main/java/com/example/LoginController.java | 5 +++++ .../src/main/java/com/example/MouseEvent.java | 5 +++++ .../src/main/java/com/example/RegisterController.java | 5 +++++ .../src/main/java/com/example/ShopController.java | 5 +++++ .../src/main/resources/com/example/login.fxml | 2 +- .../src/main/resources/com/example/register.fxml | 4 ++-- .../target/classes/com/example/login.fxml | 2 +- .../target/classes/com/example/register.fxml | 4 ++-- 10 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/MouseEvent.java diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java index 1aceb3a..4384e02 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java @@ -43,6 +43,11 @@ public class CartController { // Observable list to hold cart items private final ObservableList cartItems = FXCollections.observableArrayList(); + @FXML + void handleTitleClick(MouseEvent event) { + + } + @FXML public void initialize() { // Set up columns to match Item properties diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java index 15957a5..8a99bc4 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java @@ -71,6 +71,11 @@ public class CheckOutController { countryComboBox.getSelectionModel().selectFirst(); } + @FXML + void handleTitleClick(MouseEvent event) { + + } + @FXML private void handleCartButton() throws IOException { App.setRoot("cart"); diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java index 64030e6..470f174 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java @@ -111,6 +111,11 @@ public class LoginController { @FXML private Label usernameLabel; + @FXML + void handleTitleClick(MouseEvent event) { + + } + @FXML void handleRegisterButtonClick(ActionEvent event) { diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/MouseEvent.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/MouseEvent.java new file mode 100644 index 0000000..880ac40 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/MouseEvent.java @@ -0,0 +1,5 @@ +package com.example; + +public class MouseEvent { + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java index b34a571..7b6db85 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java @@ -46,6 +46,11 @@ public class RegisterController { @FXML private Label footerCopyText; + @FXML + void handleTitleClick(MouseEvent event) { + + } + @FXML private void handleCartButton() throws IOException { App.setRoot("cart"); diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java index 364b644..8066289 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java @@ -37,6 +37,11 @@ public class ShopController { System.out.println("ShopController initialized."); } + @FXML + void handleTitleClick(MouseEvent event) { + + } + @FXML private void handleCartButton() throws IOException { App.setRoot("cart"); diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml index acc562f..3287a7a 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml @@ -19,7 +19,7 @@ -