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

前端 未结 5 2090
北恋
北恋 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:21

    What you need is a ResourceBundle that allows you to have properties file based on Locale that you just access like a properties file.

    Here is a sample on how to do it

提交回复
热议问题