@FXML private void changeLangFr(ActionEvent event) { hang.lang = "FR"; handeller.loadWords(hang.wordpathFR); if (hang.ingame) Reload(event); imglang.setImage(new Image("/resource/fr.png")); }
/** Initializes the controller class. */ @Override public void initialize(URL url, ResourceBundle rb) { handeller = new hang(); switch (hang.lang) { case "AR": handeller.loadWords(hang.wordpathAR); break; case "FR": handeller.loadWords(hang.wordpathFR); break; case "EN": handeller.loadWords(hang.wordpathEN); break; case "ES": handeller.loadWords(hang.wordpathES); break; default: handeller.loadWords(hang.wordpathEN); } handeller.loadWords(hang.wordpathEN); Breload.setDisable(true); Btest.setDisable(true); Rword.setDisable(true); LHisto.setItems(data); Toption.setText("............"); Image image = new Image("/resource/original.gif"); img.setImage(image); // Set languag Menu imglang.setImage(new Image("/resource/en.png")); }