Conventions for multi platform code and resources
richard.bair at oracle.com
Fri Feb 24 12:01:00 PST 2012
That's a good question, one that has been on my periphery but hasn't had any attention. As of today, I am not aware of any conventions for platform or locale specific FXML / CSS. I wonder, embed name of FXML file or CSS file in a resource bundle and look it up?
On Feb 24, 2012, at 9:19 AM, Stephen Winnall <steve at winnall.ch> wrote:
> What conventions exist in JavaFX for naming and retrieving multi-platform code and resources? The obvious example to me would be CSS files: an application might be identical - in the ideal case - on all platforms, but have different CSS files for each platform to handle details for those platforms. What conventions are in place for naming and distinguishing those CSS files?
> For I18N we have ResourceBundles: is there anything similar for JavaFX resources? Taking the analogy further, besides resources like CSS files, there may be also Java classes which are platform-specific, as in I18N. There may be other resources too, like FXML files which are platform-specific.
More information about the openjfx-dev