Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8090719

Allow reload of ResourceBundles for FXML-based components/view during runtime

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • As this is an API issue it is independet of the OS or platform.

      It is currently not possible to reapply a ResourceBundle on a FXML-based component/view after initialization (FXMLLoader.load())
      A typical use case for this functionality would be, to change the language of an app during runtime (load a ResourceBundle with a different language and apply the texts to the component/view without reinstatiating all Nodes of the component/view.
      Currently the FMXL file can only be reloaded completely which includes reinstatiation of all nodes, reset all bindings, reapply all Listeners, etc. which is a big overhead or as an alternative force the user to restart after the language change.

      See a further description on https://forums.oracle.com/forums/thread.jspa?threadID=2460655&tstart=0

            Unassigned Unassigned
            duke J. Duke
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Imported: