posted 17 years ago
1) Define your ListResourceBundle in their own files as public classes.
2) Your class for US locale is incorrectly defined. It should be named: Message_en_US
3) Your ListResourceBundle can include language and country in their names. If you just create them using their language, it will suffice for all locales that use that language. For instance Message_en should serve all locales whose language is English. However, if you want to use language and country, then your ResourceBundle will only serve that particular combination. Which takes me to your next mistake.
4) Your are creating your locale incorrectly. It should be create like this: Locale MALAY = new Locale("ms","MS") so that the ResourceBundle class that you defined can really be used.
The next code runs fine:
[ May 23, 2006: Message edited by: Edwin Dalorzo ]