ohh god why just why
This commit is contained in:
		
							parent
							
								
									9e431b4fbb
								
							
						
					
					
						commit
						df8cfc41ed
					
				
					 8 changed files with 20 additions and 28 deletions
				
			
		|  | @ -71,21 +71,13 @@ public class CartController { | |||
|     } | ||||
| 
 | ||||
|     @FXML | ||||
|     private void handleCartButton(ActionEvent event) { | ||||
|         try { | ||||
|     private void handleCartButton() throws IOException { | ||||
|         App.setRoot("cart"); | ||||
|         } catch (IOException e) { | ||||
|             e.printStackTrace(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     @FXML | ||||
|     private void handleLoginButton(ActionEvent event) { | ||||
|         try { | ||||
|     private void handleLoginButton() throws IOException { | ||||
|         App.setRoot("login"); | ||||
|         } catch (IOException e) { | ||||
|             e.printStackTrace(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     @FXML | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue