public void initialize() throws ModuleInitializeException {
if (isTranslateSwingDialogs())
{
final ResourceBundle bundle = ResourceBundle.getBundle
(JFreeReportResources.class.getName());
final UIDefaults defaults = UIManager.getDefaults();
final Enumeration en = bundle.getKeys();
// JDK1.2 does not know anything about SwingTranslations,
// we have to put all keys manually in there.
while (en.hasMoreElements())
{
final String keyName = (String) en.nextElement();
try
{
defaults.put(keyName, bundle.getObject(keyName));
}
catch (MissingResourceException me)
{
// ignored, should not happen ..
}
}
}
}
Initalizes the module. If the swing components should be translated, the
resources are plugged into the Swing-ResourceManager. |