Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3284 > unrolled thread
| Started by | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:43 +0000 |
| Last post | 2011-04-27 15:44 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.gui
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Location of image fil "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Location of image fil "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
Re: Location of image fil "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:43 +0000 |
| Subject | Re: Location of image fil |
| Message-ID | <e766492e-471b-4e12-8496-c9fec3a71bfb@e10g2000prf.googlegroups.com> |
To: comp.lang.java.gui 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 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:44 +0000 |
| Message-ID | <CJ6dnQh7FqwdQn3anZ2dnUVZ8rGdnZ2d@novis.pt> |
| In reply to | #3284 |
To: comp.lang.java.gui
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
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "tar" <tar@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:44 +0000 |
| Message-ID | <ymilk4ddzbk.fsf@blackcat.isi.edu> |
| In reply to | #3284 |
To: comp.lang.java.gui Chanchal <chanchal.jacob@gmail.com> writes: > 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? What happens when you run the example code that was posted here? Are you changing the locale before or after you create the dialog object? Once it's created, it's probably too late to change the locale and expect the already existing buttons to be updated. -- Thomas A. Russ, USC/Information Sciences Institute --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web