Hello,
Unfortunately I don't know exactly what you trying to do, but a colleague of mine suggested that you may be integrating the Author Component. Is that right?

If you do, after the UI language is set ( I suppose there is something like "Locale.setDefault(locale) )", you could try doing the following:
Code: Select all
try {
Field resourcesField = Toolkit.class.getDeclaredField("resources");
resourcesField.setAccessible(true);
//Use reflection to avoid dependencies on sun packages.
Method rbInstanceGetter = Class.forName("sun.util.CoreResourceBundleControl").getMethod("getRBControlInstance", (Class[])null);
resourcesField.set(null, ResourceBundle.getBundle("sun.awt.resources.awt",
(Control) rbInstanceGetter.invoke(null, (Object[])null)));
} catch(Throwable t) {
logger.warn("Could not use specific locale for Toolkit; using the default platform locale.", t);
}
This should also set the right language for the key strokes.
Let me know how it goes.
Best wishes,
Sorin Carbunaru
oXygen XML