Re: Location of image files in Java SRC
- From: Sabine Dinis Blochberger <no.spam@xxxxxxxxxxxx>
- Date: Wed, 19 Mar 2008 09:40:15 GMT
Chanchal wrote:
Dear Mr.Thompson,If the JVM can't find the value specified in the corresponding resource
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
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
.
- References:
- Location of image files in Java SRC
- From: Chanchal
- Re: Location of image files in Java SRC
- From: Andrew Thompson
- Re: Location of image files in Java SRC
- From: Chanchal
- Re: Location of image files in Java SRC
- From: Andrew Thompson
- Re: Location of image files in Java SRC
- From: Chanchal
- Location of image files in Java SRC
- Prev by Date: Re: JTabbedPane selection changes
- Next by Date: Re: Graphics2D question.
- Previous by thread: Re: Location of image files in Java SRC
- Next by thread: Re: Location of image files in Java SRC
- Index(es):