Results 1 to 5 of 5
  1. #1
    iNko is offline Member
    Join Date
    Dec 2012
    Posts
    55
    Rep Power
    0

    Default Can i change jCalendar language?

    Hey, i just found out about jcalendar and i wonder if i can change the language of the months..

    It says "The language of the month names is defined by the locale property.". I dont understand this, what is locale property? is it when i import a component and then click properties? (i could find anything about changing language there)

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Can i change jCalendar language?

    It means that you can configure the JCalender using the java.util.Locale class to change the language used by the JCalendar object. You can use some defined locale such as Locale.ITALY, Locale.JAPAN. Or you can create a locale object by using the language code and the country code. For instance for ITALY the language code is "it" and the country code is "IT".

    Java Code:
    Locale locale = new Locale("it", "IT");

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Can i change jCalendar language?

    Quote Originally Posted by iNko View Post
    is it when i import a component and then click properties?
    Is this a question about Java or about some specific but unnamed Java IDE?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    iNko is offline Member
    Join Date
    Dec 2012
    Posts
    55
    Rep Power
    0

    Default Re: Can i change jCalendar language?

    Quote Originally Posted by DarrylBurke View Post
    Is this a question about Java or about some specific but unnamed Java IDE?

    db
    Hmm, im using netbeans, i just downloaded jcalendar jar, then went to palette manager and imported a calendar component (JDateChooser).

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Can i change jCalendar language?

    Moved from New to Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Change language in java
    By shomid in forum AWT / Swing
    Replies: 3
    Last Post: 04-24-2012, 12:20 AM
  2. multi-sélection dans un JCalendar
    By mcherkao in forum AWT / Swing
    Replies: 1
    Last Post: 01-09-2011, 05:38 AM
  3. how to change whole project in another language base on locale?
    By krunalpatel1410 in forum AWT / Swing
    Replies: 3
    Last Post: 09-20-2010, 09:24 AM
  4. Replies: 5
    Last Post: 08-25-2009, 10:41 AM
  5. Jcalendar Help
    By simmi in forum AWT / Swing
    Replies: 3
    Last Post: 08-14-2009, 05:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •