tags:

views:

130

answers:

2

what i want to do is having like the java script popup date chooser in my application. i am using java swing and would like to avoid any input mistakes by the user. specifying a format is easy to implement but not user friendly for the user. what are your suggestion ? any libraries?

+4  A: 

There are a number of date picker libraries for Swing.

I have used the JXDatePicker from SwingX and JCalendar in the past.

Mark
+2  A: 

Use a date picker, like JCalendar or JDatePicker. Since users can't type raw date strings, you don't have to worry about their mistakes.

Edit: drhorrible is right. I've fixed the link now.

Matthew Flaschen
I may be crazy, but I don't think your JCalendar link points to JCalendar...(is this it? http://www.toedter.com/en/jcalendar/index.html)
drhorrible