JDatePicker and JDatePanel is an set of advanced DatePicker controls for Java Swing applications licensed under the BSD open source license. The MVC design enables us to display any date object such as Joda-Time DateMidnight. The date picker also works well with JGoodies Binding.
Some supported features:
- JDatePicker component which pops up
- JDatePanel component which can resize
- JodaTime, util.Calendar or util.Date integration
- JGoodies Binding friendly
- Change formatting of date
- Deployed in Maven central repository
- Optional year selector
- Double click or single click actions
- Localisation support
- Touch screen friendly large version
- MVC (model view controller) design
- Familiar Look and feel – similar to MS date picker
The project is hosted at sourceforge: http://sourceforge.net/projects/jdatepicker/
how to return date from datepicker?
Akshat Porwal,
In most versions this is as easy as: datepicker.getModel().getValue()
Regards
Juan
Hi Juan,
I try to use your library and found difficult to use since the documentation is missing.
I am trying to do the following things, :
1- How do I set the date to a specidifc date ?
I tried :
picker.getModel().setDate(2014, 10, 11);
But the problem in the text field the date doesnt appear in the textfield
so I add the following :
picker.getJFormattedTextField().setText(date);
And now the problem I got an exception : cannot cast Grogorian
2 – I add the calendar to a panel and it does not appear. There is a empty space.
Thanks for your help
is it compitable to java 9 now ?
How to set the start of week?