Eclipse/SWT DateTime 中的日本帝国日历支持
我正在测试 Eclipse/SWT DateTime 控件提供的日本帝国日历支持。我尝试了以下方法,但只得到了英文日历。
Locale localeImperialJapanese = new Locale("ja", "JP", "JP");
Locale.setDefault(localeImperialJapanese);
DateTime calendar = new DateTime(parent, SWT.CALENDAR);
//Code to show the calendar in a dialog.
然后尝试在控制面板 -> 中更改格式和区域设置区域和语言,但我可以看到日语文本,但看不到日本皇历。
缺少什么吗?我在这里做错了什么吗?有没有更好/更简单的方法来测试这个?
提前致谢。
I am testing Japanese Imperial Calendar support provided by Eclipse/SWT DateTime control. I tried the following but got the calendar in English only.
Locale localeImperialJapanese = new Locale("ja", "JP", "JP");
Locale.setDefault(localeImperialJapanese);
DateTime calendar = new DateTime(parent, SWT.CALENDAR);
//Code to show the calendar in a dialog.
Then tried changing format and locale in control Panel -> Region and Languages but I could see Japanese texts but not Japanese Imperial Calendar.
Something is missing? Am I doing anything wrong here? Is there any better/easier way to test this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法设置。它仅适用于系统区域设置。因此更改了系统区域设置并对设置进行了必要的更改。现在工作了!!!:)
can't be set. It will work with the system locale only. Hence changed the System locale and made necessary changes to the settings. Now working!!!:)