Two Laptop Bag
The moose likes Swing / AWT / SWT and the fly likes Internationalization: Select language from combo box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Internationalization: Select language from combo box" Watch "Internationalization: Select language from combo box" New topic

Internationalization: Select language from combo box

alejandro garcia

Joined: Aug 11, 2007
Posts: 10
Hi, I'm trying to make the user select the language of a very simple menu.
I post here the 2 classes: Menus and Selector.
In the Menus class, there are 2 items: File and Help
When you click on File then you select Configuration, and it shows the Selector class which is only a ComboBox, where you select the Language.

The Menus class is in part internationalized because I defined a file with this pairs:


So that's first step is done, and it works fine, now I need the end user to select the language in the Configuration combo box and on the fly load TITLE, FILE,HELP,OPEN and CONFIGIRATION from an appropiate file that I've already created, if for example he selects Spanish, that properties file has this pairs:
HELP= Ayuda

Any help please?

Here is the menu class just to select the Configuration option:

And here is the selector it's just a combo box to select the language

I agree. Here's the link:
subject: Internationalization: Select language from combo box
It's not a secret anymore!