Re: Location of image files in Java SRC



Chanchal wrote:

Dear Mr.Thompson,

For the messages which are displayed on the message box, i'm using
resource bundle and messages are being displayed in the correct
language. The problem i'm facing is with the text on button of the
message box. It seems that they are displayed based on the locale of
the Operating System. Or is there any way i can set the locale ofthe
whole application, so that button text will be shown in teh correct
language?

Thanks again

Chanchal


If the JVM can't find the value specified in the corresponding resource
bundle, it will use the one in the default bundle.

For example

String locText = java.util.ResourceBundle.getBundle(
"eu/op3racional/op3MI/resources/displayStrings")
.getString("ds_label_nogroup");

if ds_label_nogroup is not in the resource bundle according to the
current locale, it will try to get it from the default bundle. It will
throw an exception if it doesn't exist anywhere, so you might want to
check your debug output.

--
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu
.