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 1a0dfe2..37e3a6c 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 @@ -1,5 +1,7 @@ package com.example; +import java.io.IOException; + import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.Label; @@ -71,9 +73,8 @@ public class ShopController { } @FXML - private void handleCartButton() { - System.out.println("Cart button clicked!"); - // Logic for displaying the cart. + private void handleCartButton() throws IOException { + App.setRoot("cart"); } @FXML 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 4139ca8..d28e9ab 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