如何为JFileChooser添加本地化,以获取默认情况下不支持的语言环境? [英] How can I add localization to JFileChooser for a locale that is not supported by default?
本文介绍了如何为JFileChooser添加本地化,以获取默认情况下不支持的语言环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用户界面翻译支持的区域设置列表 没有我需要支持的所有语言。如何为 JFileChooser
添加更多语言?
推荐答案
实际上可以使用属性文件来转换标准Swing字符串。只需致电
In fact it is possible to use properties file to translate standard Swing strings. Just call
UIManager.getDefaults().addResourceBundle("com.mypackage.messages");
其中 com.mypackage.messages
是一个完全限定的捆绑名称。
where com.mypackage.messages
is a fully-qualified bundle base name.
这篇关于如何为JFileChooser添加本地化,以获取默认情况下不支持的语言环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文