changements pour executable

This commit is contained in:
Kruss 2020-05-07 14:05:14 +02:00
parent a3ae506ee7
commit 6f6c2af608
2 changed files with 4 additions and 4 deletions

View File

@ -306,7 +306,7 @@ public class PlateauController implements Initializable {
EffetSonore.playSoundEffect(fileSound1); EffetSonore.playSoundEffect(fileSound1);
System.out.println("Jeu en pause ..."); 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 ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Pane root = (Pane)fxmlLoader.load(); Pane root = (Pane)fxmlLoader.load();

View File

@ -31,7 +31,7 @@ public class ReglesControlleur implements Initializable {
@Override @Override
public void initialize(URL arg0, ResourceBundle arg1) { 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); Image image = new Image(input);
imageRegles.setImage(image); imageRegles.setImage(image);
@ -51,7 +51,7 @@ public class ReglesControlleur implements Initializable {
System.out.println("C'est la dernière page!"); 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); Image image = new Image(input);
imageRegles.setImage(image); imageRegles.setImage(image);
@ -71,7 +71,7 @@ public class ReglesControlleur implements Initializable {
System.out.println("C'est la première page!"); 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); Image image = new Image(input);
imageRegles.setImage(image); imageRegles.setImage(image);