What are good Java Swing date-chooser components? So far I\'ve only really found these 2:
Recently I found and use the Microba DatePicker (http://microba.sourceforge.net/) for a personal project involving Swing GUIs, and I actually I really liked the way this control is implemented. Besides, the license is BSD, so you will be able to customize the control and use it for commercial purposes if you need to do so.
I'm often late but the best i've seen is : JDatePicker
(What has surprised me : week start with Sunday - like many Calendar and by the way Sunday is day 0 in Java - but you can edit the source and recompile to get it start with Monday instead ;-) )
There is also NachoCalendar.
jDateChooser which comes with jCalendar is the best component for date: Following is the way to get date from date picker:
//dat is name given to datepicker component
int day=dat.getJCalendar().getDayChooser().getDay();
int month=dat.getJCalendar().getMonthChooser().getMonth();
int year=dat.getJCalendar().getYearChooser().getYear();
String dateNow=year+"/"+month+"/"+day;
System.out.println(dateNow);
//***************************************************
//For setting date of date picker:
dat.setDateFormatString("dd-MM-yyyy");
Calendar currentDate = Calendar.getInstance();
dat.setDate(currentDate.getTime());
I've tried most of the date pickers out there.
I would suggest LGoodDatePicker.
https://github.com/LGoodDatePicker/LGoodDatePicker
Fair disclosure: I am the primary developer.
Here is a general feature list (as adapted from Github):
Screenshots below: