I'm trying to make my application bilingual: English and French. When I prompt the user for input using JOptionPane.showInputDialog it appears with OK and Cancel buttons. That's fine for the English speaking folks, but how do I change the text on the Cancel button to the French equivelant: Annuler. The OK button is the same in French, so I don't need to change it. If I later expand to include Spanish, the OK and Cancel buttons should really read: Aceptar and Cancelar respectively.
All Components have a setLocale(....) method and JComponents have setDefaultLocale(...). Don't reinvent the wheel.Read the API for Locale for more information and links to valid language and country codes.
There are no new questions, but there may be new answers.
Joined: Sep 24, 2003
Thanks for the guidance guys. Really appreciate it. The support you all provide here is awesome. On this particular topic you provided exactly what I needed.