MissingResourceException

Hi all,

i have the following piece of code:

Locale Locl = Locale.getDefault();

try{

ResourceBundle labels =ResourceBundle.getBundle("Gedai",Locl);

Enumeration bundleKeys = labels.getKeys();

while (bundleKeys.hasMoreElements()) {

String key = (String)bundleKeys.nextElement();

String value = labels.getString(key);

System.out.println("key = " + key + ", " +

"value = " + value);

}

}

catch(MissingResourceException MsReC)

{

}

what i find out it expect Gedai.property file on a default package .

my question is:

how can i tell to getbundle() function where to find my property file.

[698 byte] By [Gabi] at [2007-11-26 12:17:24]
# 1
Actually it's described in the API docs for method getBundle(). http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html#getBundle(java.lang.String)
quitte at 2007-7-7 14:54:50 > top of Java-index,Archived Forums,Socket Programming...