ohh god why just why

This commit is contained in:
sageTheDM 2025-01-13 18:34:32 +01:00
parent 9e431b4fbb
commit df8cfc41ed
8 changed files with 20 additions and 28 deletions

View file

@ -71,21 +71,13 @@ public class CartController {
}
@FXML
private void handleCartButton(ActionEvent event) {
try {
App.setRoot("cart");
} catch (IOException e) {
e.printStackTrace();
}
private void handleCartButton() throws IOException {
App.setRoot("cart");
}
@FXML
private void handleLoginButton(ActionEvent event) {
try {
App.setRoot("login");
} catch (IOException e) {
e.printStackTrace();
}
private void handleLoginButton() throws IOException {
App.setRoot("login");
}
@FXML

View file

@ -1,5 +1,7 @@
package com.example;
import java.io.IOException;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
@ -70,22 +72,19 @@ public class CheckOutController {
}
@FXML
private void handleCartButton(ActionEvent event) {
System.out.println("Cart button clicked.");
// Logic to navigate to the cart page
private void handleCartButton() throws IOException {
App.setRoot("cart");
}
@FXML
private void handleLoginButton(ActionEvent event) {
System.out.println("Login button clicked.");
// Logic to navigate to the login page
private void handleLoginButton() throws IOException {
App.setRoot("login");
}
@FXML
private void handlePaymentMethod(ActionEvent event) {
Button clickedButton = (Button) event.getSource();
System.out.println("Selected payment method: " + clickedButton.getId());
// Highlight the selected payment method or save the selection
}
@FXML

View file

@ -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;
@ -31,9 +33,8 @@ public class LoginController {
private Label footerCopyText;
@FXML
private void handleCartButtonClick(MouseEvent event) {
System.out.println("Cart button clicked.");
// Logic to navigate to the cart page
private void handleCartButton() throws IOException {
App.setRoot("cart");
}
@FXML

View file

@ -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;
@ -45,15 +47,13 @@ public class RegisterController {
private Label footerCopyText;
@FXML
private void handleCartButtonClick(MouseEvent event) {
System.out.println("Cart button clicked.");
// Logic to navigate to the cart page
private void handleCartButton() throws IOException {
App.setRoot("cart");
}
@FXML
private void handleLoginButtonClick(MouseEvent event) {
System.out.println("Login button clicked.");
// Logic to navigate to the login page
private void handleLoginButton() throws IOException {
App.setRoot("login");
}
@FXML