bouton login et menu de login fonctionnels

This commit is contained in:
Djalim Simaila 2022-06-07 21:32:15 +02:00
parent 8ca72b7b7a
commit 3fe9059ea7
2 changed files with 19 additions and 2 deletions

View File

@ -58,6 +58,9 @@ public class Controller implements Initializable {
@FXML
private Button rechercheTextuelle;
@FXML
private Button login;
// Style des boutons
Background btNormalBackground = new Background(new BackgroundFill(Color.rgb(255,110,64), new CornerRadii(30), Insets.EMPTY));
@ -215,7 +218,6 @@ public class Controller implements Initializable {
EventHandler<ActionEvent> handleRechercheCrieters = event ->{
System.out.println("test");
Donnees.setUsagesObtenus(daoUsage.findByCriterias(Donnees.getThematiqueSelectionee(),Donnees.getDisciplineSelectionee(),Donnees.getAcademieSelectionee()));
Stage resultats = new Stage();
try {
@ -226,5 +228,20 @@ public class Controller implements Initializable {
}
};
recherche.setOnAction(handleRechercheCrieters);
EventHandler<ActionEvent> loginPrompt = event ->{
System.out.println("test");
Stage loginWindow = new Stage();
try {
loginWindow.setScene(new Scene(FXMLLoader.load(getClass().getResource("/fr/univ_amu/iut/loginPrompt/Code_acces.fxml"))));
loginWindow.show();
} catch (IOException e) {
e.printStackTrace();
}
};
login.setOnAction(loginPrompt);
}
}

View File

@ -15,7 +15,7 @@
</cursor>
</TextField>
<Button fx:id="rechercheTextuelle" layoutX="1066.0" layoutY="27.0" mnemonicParsing="false" text="RECHERCHER VIA LE NOM" AnchorPane.rightAnchor="110.0" />
<Button layoutX="41.0" layoutY="29.0" mnemonicParsing="false" style="-fx-background-radius: 30;" text="interface admin" />
<Button fx:id="login" layoutX="41.0" layoutY="29.0" mnemonicParsing="false" style="-fx-background-radius: 30;" text="interface admin" />
</children>
</AnchorPane>
<StackPane layoutX="744.0" layoutY="100.0" prefHeight="254.0" prefWidth="622.0" style="-fx-background-color: none;" AnchorPane.rightAnchor="-1.0" AnchorPane.topAnchor="100.0">