What are the best practices for internationalizing a Java Swing desktop application?

前端 未结 5 2091
北恋
北恋 2020-12-30 13:44

I\'m sure there are a lot of methods, but what\'s the recommended way to do this that has the least amount of impact to your code?

The obvious is that you create pr

5条回答
  •  时光取名叫无心
    2020-12-30 14:19

    Java 6 SE allows you to reload resource bundles on the fly. Just call the clearCache() static function of the ResourceBundle class. Then call getBundle () again.

    See this article under Cache Controls

提交回复
热议问题