Traduction suite
This commit is contained in:
@@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@@ -20,7 +21,11 @@ public class PiocherVisionController implements Initializable{
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user