language in jcolorchooser

R

René Smolin

hello ng!

i have a problem with the language in the jcolorchooser. in my application
the german words will be displayed.

i have set the locale to english
--
java.util.Locale.setDefault(new java.util.Locale("en", "EN"))
--

i also tried to change the "UIDefaults", but i don´t know the right keys.
the following code lists all keys:

--
UIDefaults uiDefaults = UIManager.getDefaults();
Enumeration enum = uiDefaults.keys();
while (enum.hasMoreElements())
{
Object key = enum.nextElement();
Object val = uiDefaults.get(key);
System.out.println("[" + key.toString() + "]:[" +
(null != val ? val.toString() : "(null)") +
"]");
}
--

thank you very much in advance,

rene

ps. sorry for my little english
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top