Link to home
Start Free TrialLog in
Avatar of bosc
bosc

asked on

Language change in Java

When you use the ColorChooser objekt in Java, the fields are in english, how do you change the text in eg. the label "Recent" or the text that says "Sample text"? Can it be done in generel for JComponents?
Avatar of lEx
lEx

All these values contains UIManager.
"ColorChooser.swatchesRecentText" = "Recent :"
ColorChooser.sampleText" = "Sample Text"

So...
You can change it :
UIManager.put("ColorChooser.swatchesRecentText", "TEST");
Avatar of bosc

ASKER

hmm, okay, where can you find the names of the fields, if you want to do it in generel for JComponents? I cant fint it in the api
ASKER CERTIFIED SOLUTION
Avatar of lEx
lEx

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bosc

ASKER

Thanks, but where did you find the names of the fields?
Avatar of bosc

ASKER

thanks, just what i needed