From 6f6c2af60829e936dfcc65e5e586eaa7eb95b4cf Mon Sep 17 00:00:00 2001 From: Kruss Date: Thu, 7 May 2020 14:05:14 +0200 Subject: [PATCH] changements pour executable --- src/ihm/controller/PlateauController.java | 2 +- src/ihm/controller/ReglesControlleur.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ihm/controller/PlateauController.java b/src/ihm/controller/PlateauController.java index 764b13d..a850dc6 100644 --- a/src/ihm/controller/PlateauController.java +++ b/src/ihm/controller/PlateauController.java @@ -306,7 +306,7 @@ public class PlateauController implements Initializable { EffetSonore.playSoundEffect(fileSound1); System.out.println("Jeu en pause ..."); - final URL fxmlURL = getClass().getResource("../ressources/Pause.fxml"); + final URL fxmlURL = getClass().getResource("/ihm/ressources/Pause.fxml"); final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE); final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); Pane root = (Pane)fxmlLoader.load(); diff --git a/src/ihm/controller/ReglesControlleur.java b/src/ihm/controller/ReglesControlleur.java index 614bf3e..ff02fa9 100644 --- a/src/ihm/controller/ReglesControlleur.java +++ b/src/ihm/controller/ReglesControlleur.java @@ -31,7 +31,7 @@ public class ReglesControlleur implements Initializable { @Override public void initialize(URL arg0, ResourceBundle arg1) { - InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle1.png"); + InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle1.PNG"); Image image = new Image(input); imageRegles.setImage(image); @@ -51,7 +51,7 @@ public class ReglesControlleur implements Initializable { System.out.println("C'est la dernière page!"); } - InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle" + index + ".png"); + InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle" + index + ".PNG"); Image image = new Image(input); imageRegles.setImage(image); @@ -71,7 +71,7 @@ public class ReglesControlleur implements Initializable { System.out.println("C'est la première page!"); } - InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle" + index + ".png"); + InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/Regle" + index + ".PNG"); Image image = new Image(input); imageRegles.setImage(image);