Example #1
0
 /** Initialize ResourceBundle */
 static {
   try {
     rsrc = ResourceBundle.getBundle("sun.tools.jar.resources.jar");
   } catch (MissingResourceException e) {
     throw new Error("Fatal: Resource for jar is missing");
   }
 }
Example #2
0
 private String getMsg(String key) {
   try {
     return (rsrc.getString(key));
   } catch (MissingResourceException e) {
     throw new Error("Error in message file");
   }
 }
Example #3
0
 public static ResourceBundle getResources() {
   if (_resources == null) {
     _resources = ResourceBundle.getBundle("jnlp/sample/jardiff/resources/strings");
   }
   return _resources;
 }