Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Japanese Imperial Calendar support(Japanese Imperial Calendar support in Eclipse/SWT DateTime)
Japanese Imperial Calendar support [message #781052] Fri, 20 January 2012 08:51 Go to next message
vp_ eclipse is currently offline vp_ eclipse
Messages: 3
Registered: January 2012
Junior Member
I am testing Japanese Imperial Calendar support provided by Eclipse/SWT DateTime control. I tried the following but got the calendar in English only.

Quote:
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.
Re: Japanese Imperial Calendar support [message #782130 is a reply to message #781052] Mon, 23 January 2012 08:18 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 351
Registered: July 2009
Location: Japan
Senior Member
Which OS are you using?
Re: Japanese Imperial Calendar support [message #782225 is a reply to message #782130] Mon, 23 January 2012 11:34 Go to previous messageGo to next message
vp_ eclipse is currently offline vp_ eclipse
Messages: 3
Registered: January 2012
Junior Member
Thanks for your response Inzumi. The system is running on Windows 7 OS.
Re: Japanese Imperial Calendar support [message #782589 is a reply to message #782225] Tue, 24 January 2012 02:09 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 351
Registered: July 2009
Location: Japan
Senior Member
It works for me on Windows 7.
DateTime widget is based on Windows' Calendar control, I guess.
Japanese Imperial Calendar is supported from Java6 but it is not related to SWT.
>Locale localeImperialJapanese = new Locale("ja", "JP", "JP");
>Locale.setDefault(localeImperialJapanese);
This has no sense for the DateTime widget.

attached: settings and the result of Snippet250.
  • Attachment: setting.png
    (Size: 18.30KB, Downloaded 88 times)
  • Attachment: snippet250.png
    (Size: 7.70KB, Downloaded 81 times)
icon14.gif  Re: Japanese Imperial Calendar support [message #784179 is a reply to message #782589] Fri, 27 January 2012 06:43 Go to previous message
vp_ eclipse is currently offline vp_ eclipse
Messages: 3
Registered: January 2012
Junior Member
Thanks a lot. I missed a setting in the control panel.
Previous Topic:Scrollable Menu
Next Topic:Browser and PDF
Goto Forum:
  


Current Time: Thu Oct 23 14:42:19 GMT 2014

Powered by FUDForum. Page generated in 0.04307 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software