• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to switch my interface to an other language  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

We've written an application that can be use in french or in deutch. We are using resourceBundle.getBundel(....).getString(.....) for all label , button ........
We can start the application in one or in the other language. But how can we switch from on language to the other at runtime? We can change the Locale but how to refresh the label on the current frame???
If you know a easy soluce tell me please...
:roll: :roll: :roll: :roll:
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's an article about internationalization that covers dynamic language selection here.
 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nate,
Your posting has alway helped me, to learn more about java/swing. Thank you very much.
Garandi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!