i18n - help
i'm internationalizing an application and don't wanna hardcode anything into the app code, so i'd like to externalize even the keycodes used in the buttons mnemonics. Ok, an example: we've got a button named "Run" in the English props file and "Ejecutar" in the Spanish one. So here's my code right now
if(app_lan.equals("en"))
button.setMnemonic(KeyEvent.VK_R);//Run
if(app_lan.equals("es"))
button.setMnemonic(KeyEvent.VK_E);//Ejecutar
however, when i externalize the keyevents, the english/spanish properties file will return it to me as a string: "KeyEvent.VK_R", "KeyEvent.VK_E".
so the question is, what have i to do with those strings to get the KeyEvent's and invoke the method mnemonic with them? I've tried with Class.forName, with ObjectName... nothing seem to work. somebody any clue for me?
thanks!

