From 3c52879df97c3b6d89324e89403d2f1db7c286db Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Sun, 12 Jan 2025 22:48:56 +0100 Subject: [PATCH] help me dear god --- .../main/java/com/example/ShopController.java | 7 ++++--- .../classes/com/example/ShopController.class | Bin 2740 -> 2810 bytes 2 files changed, 4 insertions(+), 3 deletions(-) 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 4139ca8dd0f0361b055934012677e6241e3c6736..d28e9ab344c137c475e5339519476a76253a4937 100644 GIT binary patch delta 638 zcmZwDNiPIJ6bJDCGd;RBi6C>3*kU>N#lFv2#xP?U`!b@Q_~HbszbNn6IBt&j5Omxi#O)E(zvDDeHKC-YuT!=q1!0 z+GnjRB$b6XmSThlp}b24~s=F!QSermOSj~KY+ zREAcbOb9tc65jtRT;CjKKcOb|Cu!3z4Y@ojfoi#Fl%f!#7v5b2bgU( zJ7N-IrUOil&7PQ~m{fo{WK$3`CuTmtcx;Zvq{S=-m@_sdG0S3B0?av^3o&bA)&tBH On`<_86@*Rs%dKw*^mDZU delta 524 zcmZwDJxjxI5C-tOG@)s55$#Yq*!uDTieP=MZCV>`Q?+|>R9RP}O_-uV^1rv%0lhy83oI4xFaTMmf zLE!cMULIlmq8s)Gz8jqfp)E%fmdQ=b;~L#1%2=ik&MIlTgLP`?72Kjny@oD*@n(lI zhK+kK9pewtq)yT`>R^IHPst4F))X#KAvKY0@~#Cl{L&a8X9{Lvj;98Tgw`}JiE6Xj zSE?0JtD=rr9V=By)Vin>R;Nl;5oL?=Soum-6SW~KVAWSDN7SaMh}ET1HAFQ<4Ov|) dRZG;is2f(dO0_GhJyQ95Ru2k=+~TO)gMY@-Oo;#h