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...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.