> On application startup I set a different locale from JVM.
>
> JColorChooser show strings in JVM default locale.
>
> How can set the right language in JColorChooser whitout change dhe
> default JVM language?

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Sembra che Thomas Hawtin abbia detto :
> JComponent.setDefaultLocale on application start up.
I have tryed but no result.
I have also tryed this
com.borland.dbswing.IntlSwingSupport support = new
com.borland.dbswing.IntlSwingSupport(Locale.ENGLISH);
whith no result.

Signature
Posted via a free Usenet account from http://www.teranews.com
Thomas Hawtin - 19 Sep 2006 16:51 GMT
> Sembra che Thomas Hawtin abbia detto :
>> JComponent.setDefaultLocale on application start up.
>
> I have tryed but no result.
A quick look at the source seems to indicate that the chooser locale
will only affect the preview title border.
From ColorChooserDialog API docs in JColorChooser.java:
" * Note: This needs to be fixed to deal with localization!"
Looking further, in UIDefaults we have the line:
private Locale defaultLocale = Locale.getDefault();
That's the wrong default. However, you should be able to change it with:
UIManager.getDefaults().setDefaultLocale(locale);
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/