*
The moose likes Beginning Java and the fly likes Gui button with calendar popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Gui button with calendar popup" Watch "Gui button with calendar popup" New topic
Author

Gui button with calendar popup

John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
I have a form where the date should be entered. Right now, I enter a text format. I would like to add a calendar popup to allow selection of the date. The calendar should allow switching year since most of the dates would be from more than 6 years ago.

Can you provided suggestions on how to implement a calendar popup? Is this part of swing?

John
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I typed "java calendar popup" into Google and got this as the first link returned: Java Swing Calendar Popup Button.

I haven't reviewed this code in any way but if you're looking for the feature (instead of a coding opportunity) I recommend you do that. It's not the only possibility I got from my web search either.
John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
Thanks for the suggestion, I did try a few google searches.
Here are some other good links, but haven't tried them yet:
http://www.java2s.com/Product/Java/Swing/Calendar-Date-Time.htm
http://www.java2s.com/Code/Java/Swing-Components/JavaDateChooserComboBox.htm

John
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Hi,

I have implemented a Calendar popup inside a Combo Box using one such resource. I don't remember the resource source. I have attached here the DateComboBox i have used.
It should be initialized like below


John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
Thanks, that works fine...

John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Gui button with calendar popup