JavaFX: Change application language on the run

前端 未结 3 1143
情话喂你
情话喂你 2020-12-13 11:30

I am making JavaFX desktop application with core components described in FXML and I would like to offer user the option to change the language. However I have not find any d

3条回答
  •  失恋的感觉
    2020-12-13 11:57

    I am currently using singleton (in later stage might be injected via DI framework) as a wrapper for language ResourceBundle.

    My plan is to implement observable pattern and notify all components which requires to change (subcomponents injected with @FXML statement).

提交回复
热议问题