Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • zarliv/SIS
1 result
Show changes
Commits on Source (1)
......@@ -13,7 +13,7 @@ import fc.model.Radiologue;
import fc.model.Administration;
import fc.model.Manipulateur;
import fc.MessageDErreur;
import java.awt.event.KeyEvent;
import javafx.scene.input.KeyEvent;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
......@@ -111,9 +111,9 @@ public class ConnexionPageController implements Initializable {
}
@FXML
public void toucheEntrer(KeyEvent event) {
private void toucheEntrer(KeyEvent event) {
// Vérifier si la touche appuyée est la touche "Entrée"
if (event.getKeyCode() == KeyCode.ENTER.getCode()) {
if (event.getCode()== KeyCode.ENTER) {
handleButtonValider();
// Effectuer l'action désirée lorsque la touche Entrée est pressée
}
......
......@@ -14,7 +14,7 @@
<!-- Contenu principal au centre -->
<center>
<HBox alignment="CENTER" spacing="50" style="-fx-padding: 50;">
<HBox alignment="CENTER" onTouchPressed="#handleButtonValider" spacing="50" style="-fx-padding: 50;">
<!-- Colonne de gauche - Logo -->
<VBox alignment="CENTER" prefWidth="350" spacing="20">
<ImageView fx:id="image" fitHeight="150" fitWidth="300" preserveRatio="true" smooth="true" />
......@@ -45,7 +45,7 @@
<VBox alignment="CENTER_LEFT" spacing="5">
<Label style="-fx-text-fill: #2c3e50; -fx-font-weight: bold;" text="Mot de passe" />
<PasswordField fx:id="passwordField" promptText="Entrez votre mot de passe" style="-fx-pref-width: 280; -fx-pref-height: 40; -fx-background-radius: 5; -fx-border-radius: 5; -fx-border-color: #bdc3c7; -fx-border-width: 1;" />
<PasswordField fx:id="passwordField" onKeyPressed="#toucheEntrer" promptText="Entrez votre mot de passe" style="-fx-pref-width: 280; -fx-pref-height: 40; -fx-background-radius: 5; -fx-border-radius: 5; -fx-border-color: #bdc3c7; -fx-border-width: 1;" />
</VBox>
<Label fx:id="errorLabel" style="-fx-text-fill: #e74c3c; -fx-wrap-text: true; -fx-max-width: 280;" />
......