Ђорђе Ђашић
Ђорђе Ђашић

Reputation: 121

JDateChooser display language

I'am using JCalendar's 1.4 JDateChooser so I ask if it is possible to change display names for months and days of weeks without having to change the source code, or, since I never looked the source code, is it complicated to change it even if it can be changed. Thanks.

Upvotes: 1

Views: 1148

Answers (1)

trashgod
trashgod

Reputation: 205875

JCalendar responds correctly to supported locales. For example, the locale illustrated below is specified on the command line:

java -Duser.language=fr -Duser.country=FR -cp build/classes DateDemo

image

Additional localized text properties are found in the source code:

src/com/toedter/calendar/jcalendar_*

For unsupported locales, consider ICU4J Locale Service Provider.

Upvotes: 3

Related Questions