Internalization in fxml files with Flow API

38 views
Skip to first unread message

Semi Clayton

unread,
Apr 13, 2016, 6:22:33 AM4/13/16
to DataFX
I am trying to implement internalization of my fxml resource files such that i can link it to a resource bundle and use keys to retrive content. I have tried to use the ViewConfiguration property of the Flow class to achieve this to no avail. I had done achieved this before in plain JavaFx using the FXMLLoader Class. Here is what I have done so far

      Flow flow = new Flow(MainUIController.class);       
        ResourceBundle bundle = ResourceBundle.getBundle("net.gostudent.offline.language.LangBundle", new Locale("en", "En"));
        flow.getViewConfiguration().setResources(bundle);
        flow.startInStage(primaryStage);

However, when I attemp to run the application it throws a  io.datafx.controller.FxmlLoadException with message "No resources specified".

Please Help Anyone?


Reply all
Reply to author
Forward
0 new messages