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 021611c..bbc6f73 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 @@ -44,8 +44,8 @@ public class CartController { private final ObservableList cartItems = FXCollections.observableArrayList(); @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 6150400..5edfd47 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 @@ -73,8 +73,8 @@ public class CheckOutController { } @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 470f174..863f39f 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 @@ -112,7 +112,7 @@ public class LoginController { private Label usernameLabel; @FXML - void handleTitleClick(MouseEvent event) { + void handleLoginButton(ActionEvent event) { } @@ -121,6 +121,11 @@ public class LoginController { } + @FXML + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); + } + @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/RegisterController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java index 7b6db85..1e627d7 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 @@ -47,8 +47,8 @@ public class RegisterController { private Label footerCopyText; @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 0e1c5ba..fe027d2 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 @@ -38,8 +38,8 @@ public class ShopController { } @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CartController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CartController.class index 2a987f5..783abbe 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CartController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CartController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CheckOutController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CheckOutController.class index f547815..b56c4f6 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CheckOutController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/CheckOutController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/LoginController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/LoginController.class index e9e6685..ffdf3d3 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/LoginController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/LoginController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/RegisterController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/RegisterController.class index b6465f2..c77dc4d 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/RegisterController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/RegisterController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class index 5410f16..b09bf02 100644 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/ShopController.class differ