XCalendarPickerXCalendarPicker 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:
ExamplesBasic 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 itThe test class used to generate the images above can be started by clicking here.Sample CodeXCalendarPicker {
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. 2566 Views |