I have this object in fxml (among others):
<Label text="Birthday">
<font>
<Font size="16.0" />
</font>
</Label>
I also have this Excel document:
Birthday Date d'anniversaire День Рождения
It contains two translations of the word Birthday.
I need to be able to change the text of the label when in the application in dropdown list another language is chosen. How would I do that? Is it possible to do inside the .fxml
file?
This is how I load stage from file:
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource(fxml + ".fxml"));
scene = new Scene(fxmlLoader.load(), 500, 400);