使用 ResourceBundle 更改应用程序的语言
我正在使用 Netbeans IDE 构建基于 Java 的国际化应用程序,我正在尝试使用位于单个框架中的组合框来更改框架的语言,但我无法编写代码来执行此操作,有人可以帮助我吗?
组合框包含一些带有本地值标识符的对象。我想采用这个值并更改框架的区域设置,然后更改框架的语言。
我尝试更改基本本地,但这不起作用。我该怎么办?
I'm building a internationalized application based of Java using Netbeans IDE, I´m trying to change the language of my frames using a combobox located in a singular frame, but I cant make the code for do that, can any help me?
The combobox contains a some Objects with a Local value identifier. I want to take this value and change the Locale of the frames, then change the languages of the Frames.
I tried to change the base Local, but that does not work. What do I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要准备好您的应用程序 i18n。那么就需要使用资源包进行本地化。从头到尾阅读此教程。
First you need to making your application i18n ready. Then you need to use resource bundles for localization. Read this tutorial end to end.