bouton login et menu de login fonctionnels, mais avec les nouveaux fichier added to git
This commit is contained in:
		
							parent
							
								
									3fe9059ea7
								
							
						
					
					
						commit
						69e0c628e9
					
				
							
								
								
									
										19
									
								
								src/main/java/fr/univ_amu/iut/loginPrompt/Code_acces.fxml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								src/main/java/fr/univ_amu/iut/loginPrompt/Code_acces.fxml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| 
 | ||||
| <?import javafx.scene.control.Button?> | ||||
| <?import javafx.scene.control.PasswordField?> | ||||
| <?import javafx.scene.layout.AnchorPane?> | ||||
| <?import javafx.scene.text.Font?> | ||||
| <?import javafx.scene.text.Text?> | ||||
| 
 | ||||
| <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="321.0" prefWidth="504.0" style="-fx-background-color: #f5f0e1#f5f0e1;" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.univ_amu.iut.loginPrompt.Controller"> | ||||
|    <children> | ||||
|       <Text layoutX="171.0" layoutY="125.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Code d'accès" textAlignment="CENTER" wrappingWidth="171.82891845703125"> | ||||
|          <font> | ||||
|             <Font size="26.0" /> | ||||
|          </font> | ||||
|       </Text> | ||||
|       <PasswordField fx:id="password" layoutX="175.0" layoutY="148.0" prefHeight="26.0" prefWidth="167.0" style="-fx-background-radius: 10;" /> | ||||
|       <Button fx:id="log" layoutX="208.0" layoutY="208.0" mnemonicParsing="false" text="Se connecter" /> | ||||
|    </children> | ||||
| </AnchorPane> | ||||
							
								
								
									
										33
									
								
								src/main/java/fr/univ_amu/iut/loginPrompt/Controller.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								src/main/java/fr/univ_amu/iut/loginPrompt/Controller.java
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| 
 | ||||
| package fr.univ_amu.iut.loginPrompt; | ||||
| 
 | ||||
| import javafx.event.ActionEvent; | ||||
| import javafx.event.EventHandler; | ||||
| import javafx.fxml.FXML; | ||||
| import javafx.fxml.Initializable; | ||||
| import javafx.scene.control.Button; | ||||
| import javafx.scene.control.PasswordField; | ||||
| 
 | ||||
| 
 | ||||
| import java.net.URL; | ||||
| import java.util.ResourceBundle; | ||||
| 
 | ||||
| public class Controller implements Initializable{ | ||||
| 
 | ||||
|     @FXML | ||||
|     private PasswordField password; | ||||
| 
 | ||||
|     @FXML | ||||
|     private Button log; | ||||
| 
 | ||||
|     @Override | ||||
|     public void initialize(URL url, ResourceBundle resourceBundle) { | ||||
|          | ||||
|         EventHandler<ActionEvent> handleLogin = event ->{ | ||||
|             System.out.println(password.getText()); | ||||
|         }; | ||||
|         log.setOnAction(handleLogin); | ||||
|          | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user