Open Source JavaFX Now!

JFXtras Core Logo

XCalendarPicker

XCalendarPicker is a general purpose date picker. It uses the java.util.Calendar class instead of the Date class, and therefor supports first-day-of-week settings and week numbering as can be specified in the Calendar class. Furthermore it has a locale to show the correctly translated month and weekday names.

The picker has three selection modes:

  • SINGLE - Pick a single day
  • RANGE - Select one range of days
  • MULTIPLE - Select multiple ranges.

Examples

Basic calendar picker using controls (a.o. the XPicker), with one date selected:


Multiple ranges selected:


There also is a "light" skin that does not use controls but simple squares and has some small animations:

This skin uses XNudger.

Try it

The test class used to generate the images above can be started by clicking here.

Sample Code

XCalendarPicker {
      mode: XCalendarPicker.MODE_MULTIPLE
      calendar: java.util.Calendar.getInstance(Locale.ENGLISH) // determines the first-day-of-week
      locale: Locale.ENGLISH // determines the month and weekday names
};  

See JavaFXDoc for details.


<< Back to JFXtras FrontPage
< Back to Controls

3 Attachments 3 Attachments
2566 Views