KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > standard > examples > i18n > Resources


1 package org.apache.taglibs.standard.examples.i18n;
2
3 import java.util.ListResourceBundle JavaDoc;
4
5 public class Resources extends ListResourceBundle JavaDoc {
6     private static Object JavaDoc[][] contents;
7
8     static {
9     contents = new Object JavaDoc[][] {
10         { "greetingMorning", "Good Morning!" },
11         { "greetingEvening", "Good Evening!" },
12         { "serverInfo", "Name/Version of Servlet Container: {0}, "
13                         + "Java Version: {1}" },
14         { "currentTime", "Current time: {0}" },
15         { "com.acme.labels.cancel", "Cancel" },
16         { "java.lang.ArithmeticException", "division by 0" }
17     };
18     }
19
20     public Object JavaDoc[][] getContents() {
21     return contents;
22     }
23 }
24
Popular Tags