• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Swing and I18N question

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm adding I18N feature to my app. I'd like my app to be able to update the language in the GUI dynamically when user chooses a particular language. Suppose the initial language (whe the app starts)is US_EN. Now I have a language panel (from my apps options menu) that consists of several languags in the form or radio button. User chooses one of the language from
the pannel (say japanese)and hit update button. Now, I'd like the GUI to update the language from resourcebundle automatically and display it..
One way of doing that would be, updating all the labels,tooltiptext etc. in your GUI from the modified resourcebundle, programatically. However that might require signifact amout of coding depending on how many places you need to make those changes..
My question is, is there a better way of getting the job done?
Thanks in advance.
-Dan
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might try something like this:



Simple yet effective.
 
S Dan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Very cool idea. Thanks!
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic