954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

date picker

I want to have a date picker for my application.
It should be really simple...

I went through many examples.
But all I found contains very large files (LOCs)....How can I impliment a simple calender? to pick a date and time....

(jst wanna use them in two comboboxes... to pick the date & time)

plz help

thankx in advance...

jrosh
Junior Poster
155 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

For the simplest solution try:
AbstractSpinnerModel
and
SpinnerDateModel

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 
For the simplest solution try: AbstractSpinnerModel and SpinnerDateModel


You think that is simple??
:-O

jrosh
Junior Poster
155 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 
You think that is simple?? :-O

They are classes provided by java.

For the Date Picker,SpinnerDateModel works on its own and is very simple. Just read its API, initialize it and put it in your frame. Then use the methods described in the API to get the date value.

If you want a time picker as well you might want to extend the AbstractSpinnerModel and read its API which is at the link I gave you.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You