LabelResource.java



import java.util.ListResourceBundle;

/** それぞれの Locale に対応したメッセージのデータのクラス */

public class LabelResource extends ListResourceBundle {

   /** それぞれの Locale に対応したデータ */

      static final Object[][] labels = {
                                        { "elephant", "Elephant" },
                                        { "cat", "Cat" },
                                        { "dog", "Dog" },
                                        { "tiger", "Tiger" },
                                        { "horse", "Horse" },
                                        { "bear", "Bear" },
                                        { "dragon", "Dragon" },
                                        { "zoo", "Zoo" },
                                       };

   /** データのリストを返すメソッド */

      protected Object[][] getContents() {

             return labels;
      }
}