One can set ResourceBundle
in a Java class using code below.
FXMLLoader loader = new FXMLLoader(getClass().getResource("my_view.fxml"));
loader.setResources(MyRes.getBundle());
//Node myNode = (Node) loader.load();
Is it possible to specify ResourceBundle in FXML file itself?
From Introduction to FXML:
Not sure about the situation where it is not an included file as I didn't see the documentation on that (from some quick tests, I don't think it's possible, though I could be wrong).