Answer the question
In order to leave comments, you need to log in
How to translate (russify) the context menu in JavaFX?
Good afternoon!
Task: Russify the menu drop-down when RMB is pressed on Textfield and TextArea in JavaFX.
Haven't used .properties in Java before.
Following fragmentary information collected in Google, I created a strings_ru.properties file, in which I placed:
TextInputControl.menu.Undo=Cancel
TextInputControl.menu.Redo=Redo
And so on.
Please advise what to do with this file next?
Now the code looks like this:
boundle = ResourceBundle.getBundle("strings", new Locale("ru"));
Stage Form=new Stage();
Parent root = FXMLLoader.load(getClass().getResource("FXML/Form.FXML", boundle)
Form.setScene(new Scene(root));
Form.show();
After launch, no changes in the drop-down menu occur, as if my properties were not used.
What is missing, what did you do wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question