This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 Resources.properties 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 Resourses_es_ESP.properties file that I've already created, if for example he selects Spanish, that properties file has this pairs: TITLE=Internationacionalizacion FILE=Archivo HELP= Ayuda OPEN=Abrir CONFIGURATION=Configuracion.
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