
				[ DatePickerBean ]


Hi Friends,

If you find it difficult to go through the java docs, lets make things simple.

The DatePickerBean has some basic functionality that you would expect in any date selection utitlity.
so you have:
1]
setDate() methods to set its current date, 
setMinDate() methods to set minimum date,
setMaxDate() methods to set maximum date and
	To make things easy these methods take a variety of parameters. You can pass a Gregorian Calender obj, SQl Date obj, or directly use yyyy,mm,dd in int formats

These can also be set through various constructors.

2]
DatePicker has basic exceptions which are self explanatory
	InvalidDateException, GreaterThanMaxDateException, .LessThanMinDateException

They are all derived from DatePickerException class
They become active when you try to set dates programatically.

3]Then there is DatePickerListener interface which has only func to implement ie.

dateChanged(DatePicker DatePickerObj)
This method is invoked every time you select a Date from the Calendar or use one of the 'setDate' Methods.

Caution:
Do not use 'setDate' methods of DatePickerObj inside this method.
This will be lead to an infinite recursive call to the same method.

4] you also have various date formats like  dd_mm_yyyy, mm_dd_yyyy,dd_mmm_yyyy, etc (have look at the docs) which are defined as static constants of DatePicker class.
You can use setDateFormat(int) to set approp. formats

5] There are other functions which are related to the calender of this bean.
You set its title, position, various colors, etc.

6] There are also other utility funcs such as compareDates() that help you compare two dates 
These funcs are static hence can be used without creating any DatePicker objs.


Hope this gives you a fair idea about the features of this bean.

Thank you for downloading DatePickerBean.

Pramod S. Jaiswal


