Boutton quitter

This commit is contained in:
Yessine Ben El Bey 2020-05-06 14:07:51 +02:00
parent 70a214248d
commit 71b7a1cb2b
2 changed files with 12 additions and 1 deletions

View File

@ -66,7 +66,10 @@ public class MenuController implements Initializable{
} }
@FXML
public void quitterLappli(MouseEvent mouseEvent) throws IOException{
System.exit(0);
}
public void afficherRegle(MouseEvent mouseEvent) { public void afficherRegle(MouseEvent mouseEvent) {
InputStream fileSound1 = getClass().getResourceAsStream("/ihm/ressources/musique/BEEP1.wav"); InputStream fileSound1 = getClass().getResourceAsStream("/ihm/ressources/musique/BEEP1.wav");

View File

@ -40,6 +40,14 @@
<Insets top="50.0" /> <Insets top="50.0" />
</VBox.margin> </VBox.margin>
</Button> </Button>
<Button mnemonicParsing="false" onMouseClicked="#quitterLappli" prefHeight="48.0" prefWidth="108.0" styleClass="bouton" text="quitter">
<font>
<Font size="24.0" />
</font>
<VBox.margin>
<Insets top="50.0" />
</VBox.margin>
</Button>
</children> </children>
</VBox> </VBox>
</children> </children>