I just start using the new JavaFX 8 control DatePicker
. In DatePicker User Experience Documentation, it is stated that it has couple of cool features that I would like to have in my GUI application:
- I want to change the format from
mm/dd/yyyy
todd/mm/yyyy
. - I would like to restrict the date that can be selected. The user can only select from today until the same day of next year.
- Display Hijri dates besides the original ones:
How to implement these features? The JavaDoc doesn't say much about them.
Here is the full implementation: