Ivan Karlovic
Ivan Karlovic

Reputation: 221

Localization and L&Fs

I thought it would be nice if I gave the user the ability to choose and switch between "themes" (L&Fs). I'd give him a choice between Java metal (default), System default, and maybe a couple more I'll download from the internet...

My application is also bilingual (you can pick between two languaes to be displayed). However, it's important for my application to be fully translated. I can handle the simple stuff, naming JLabels, JButtons, titles of frames, etc...

But there are also some predefined components whoose string I cannot manage as easely (e.g. JFileChooser). I was told that I could change them using the UIManager, but that their strings are L&F specific.

Now, regardless to how much fun would be translating my application for each and every L&F, I hope there is some centralised way of controlling those strings.

After all, JFileChoose (e.g.) is the same component, no matter the L&F that is used, right? It prints text on the same parts of itself, no? So, there should be something I could access that would grant me "master" control over the text that is printed onto the predefined components, I assume...

Any ideas?

Upvotes: 1

Views: 90

Answers (1)

mKorbel
mKorbel

Reputation: 109823

Upvotes: 2

Related Questions