am pizza
This commit is contained in:
		
							parent
							
								
									4e921349e5
								
							
						
					
					
						commit
						4975948b43
					
				
					 4 changed files with 100 additions and 16 deletions
				
			
		|  | @ -2,35 +2,119 @@ package com.example; | ||||||
| 
 | 
 | ||||||
| import java.io.IOException; | import java.io.IOException; | ||||||
| 
 | 
 | ||||||
|  | import javafx.event.ActionEvent; | ||||||
| import javafx.fxml.FXML; | import javafx.fxml.FXML; | ||||||
| import javafx.scene.control.Button; | import javafx.scene.control.Button; | ||||||
| import javafx.scene.control.Label; | import javafx.scene.control.Label; | ||||||
| import javafx.scene.control.PasswordField; | import javafx.scene.control.PasswordField; | ||||||
| import javafx.scene.control.TextField; | import javafx.scene.control.TextField; | ||||||
| import javafx.scene.input.MouseEvent; | import javafx.scene.input.MouseEvent; | ||||||
|  | import javafx.scene.layout.GridPane; | ||||||
|  | import javafx.scene.layout.HBox; | ||||||
|  | import javafx.scene.layout.VBox; | ||||||
| 
 | 
 | ||||||
| public class LoginController { | public class LoginController { | ||||||
| 
 | 
 | ||||||
|     @FXML |  | ||||||
|     private Label mainTitle; |  | ||||||
| 
 |  | ||||||
|     @FXML |     @FXML | ||||||
|     private Button cartBtn; |     private Button cartBtn; | ||||||
| 
 | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox contactUs; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox followUs; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox footer; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerAbout; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerBluesky; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerContact; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox footerCopy; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerCopyText; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerEmail; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerFacebook; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerHeading2; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerHeading3; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerHome; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerInstagram; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private HBox footerLinks; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerPhone; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label footerText; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox formFields; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label formTitle; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private HBox header; | ||||||
|  | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private Button loginBtn; |     private Button loginBtn; | ||||||
| 
 | 
 | ||||||
|     @FXML |  | ||||||
|     private TextField usernameInput; |  | ||||||
| 
 |  | ||||||
|     @FXML |  | ||||||
|     private PasswordField passwordInput; |  | ||||||
| 
 |  | ||||||
|     @FXML |     @FXML | ||||||
|     private Button loginButton; |     private Button loginButton; | ||||||
| 
 | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private Label footerCopyText; |     private VBox loginForm; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private GridPane main; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label mainTitle; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private PasswordField passwordInput; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label passwordLabel; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private VBox quickLinks; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Button registerButton; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private TextField usernameInput; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     private Label usernameLabel; | ||||||
|  | 
 | ||||||
|  |     @FXML | ||||||
|  |     void handleRegisterButtonClick(ActionEvent event) { | ||||||
|  | 
 | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private void handleCartButton() throws IOException { |     private void handleCartButton() throws IOException { | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|          <children> |          <children> | ||||||
|             <Label fx:id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" /> |             <Label fx:id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" /> | ||||||
|             <Pane HBox.hgrow="ALWAYS" /> |             <Pane HBox.hgrow="ALWAYS" /> | ||||||
|             <Button fx:id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" /> |             <Button fx:id="cartBtn" mnemonicParsing="false" onAction="#handleCartButton" styleClass="cartBtn" text="Cart" /> | ||||||
|             <Button fx:id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" /> |             <Button fx:id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" /> | ||||||
|          </children> |          </children> | ||||||
|          <padding> |          <padding> | ||||||
|  | @ -95,8 +95,8 @@ | ||||||
|                         <PasswordField fx:id="passwordInput" styleClass="formInput" /> |                         <PasswordField fx:id="passwordInput" styleClass="formInput" /> | ||||||
|                      </VBox> |                      </VBox> | ||||||
|                   </VBox> |                   </VBox> | ||||||
|                   <Button fx:id="loginButton" mnemonicParsing="false" styleClass="btnLogin" text="Login" /> |                   <Button fx:id="loginButton" mnemonicParsing="false" onAction="#handleLoginButtonClick" styleClass="btnLogin" text="Login" /> | ||||||
|                   <Button fx:id="loginButton1" layoutX="583.0" layoutY="355.0" mnemonicParsing="false" styleClass="btnLogin" text="Register" /> |                   <Button fx:id="registerButton" layoutX="583.0" layoutY="355.0" mnemonicParsing="false" onAction="#handleRegisterButtonClick" styleClass="btnLogin" text="Register" /> | ||||||
|                </children> |                </children> | ||||||
|             </VBox> |             </VBox> | ||||||
|          </children> |          </children> | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -21,7 +21,7 @@ | ||||||
|          <children> |          <children> | ||||||
|             <Label fx:id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" /> |             <Label fx:id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" /> | ||||||
|             <Pane HBox.hgrow="ALWAYS" /> |             <Pane HBox.hgrow="ALWAYS" /> | ||||||
|             <Button fx:id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" /> |             <Button fx:id="cartBtn" mnemonicParsing="false" onAction="#handleCartButton" styleClass="cartBtn" text="Cart" /> | ||||||
|             <Button fx:id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" /> |             <Button fx:id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" /> | ||||||
|          </children> |          </children> | ||||||
|          <padding> |          <padding> | ||||||
|  | @ -95,8 +95,8 @@ | ||||||
|                         <PasswordField fx:id="passwordInput" styleClass="formInput" /> |                         <PasswordField fx:id="passwordInput" styleClass="formInput" /> | ||||||
|                      </VBox> |                      </VBox> | ||||||
|                   </VBox> |                   </VBox> | ||||||
|                   <Button fx:id="loginButton" mnemonicParsing="false" styleClass="btnLogin" text="Login" /> |                   <Button fx:id="loginButton" mnemonicParsing="false" onAction="#handleLoginButtonClick" styleClass="btnLogin" text="Login" /> | ||||||
|                   <Button fx:id="loginButton1" layoutX="583.0" layoutY="355.0" mnemonicParsing="false" styleClass="btnLogin" text="Register" /> |                   <Button fx:id="registerButton" layoutX="583.0" layoutY="355.0" mnemonicParsing="false" onAction="#handleRegisterButtonClick" styleClass="btnLogin" text="Register" /> | ||||||
|                </children> |                </children> | ||||||
|             </VBox> |             </VBox> | ||||||
|          </children> |          </children> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue