To provide resources that are not strings, define classes that extend the
ResourceBundle class. Use the standard naming convention to name your classes, for example
MyProgramResources.java MyProgramResources_en.java MyProgramResources_de_DE.java
Load the class with the same
getBundle method that you use to load a property file:
ResourceBundle bundle = ResourceBundle.getBundle("MyProgramResources", locale);
When searching for bundles, a bundle in a class is given preference over a property file when the two bundles have the same base names.
Each resource bundle class implements a lookup table. You need to provide ...