The moose likes Swing / AWT / SWT and the fly likes Java Swing Date Picker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java Swing Date Picker" Watch "Java Swing Date Picker" New topic

Java Swing Date Picker

Rus Corina
Ranch Hand

Joined: Jul 08, 2011
Posts: 90
Hello. Does anybody know if Java Swing has a graphical date picker? I have a JTextField where i need a date as an input, and i need a graphical calendar from which to choose the date (i need it to open when i click a button, close when a date is selected, and be able to choose there the month and the year from a list). Or if you know a link to an application of this type created by someone.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
google JCalender
Rus Corina
Ranch Hand

Joined: Jul 08, 2011
Posts: 90
Yeah, but i didn't find a graphical calendar. And by that i mean a jdialog in which you have the possibility to choose month,year and day, just like in a normal calendar.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19654

Really. A simple search for jcalendar as Michael suggested gave me several results, among which http://www.toedter.com/en/jcalendar/, http://www.zfqjava.com/docs-calendar.html and http://freshmeat.net/projects/jcalendar4swing/ - and that's only a few from page 1.

How To Ask Questions How To Answer Questions
Rus Corina
Ranch Hand

Joined: Jul 08, 2011
Posts: 90
I know, I found a lot. Don't really know how to use them or if I can integrate them in my application but I'll figure it out. Thanks
I agree. Here's the link: http://aspose.com/file-tools
subject: Java Swing Date Picker
Similar Threads
Build a Calendar using Swing
set value in text box
Java Date Picker
Ajax with Database
Date and Time Picker in Swing Apllications