			[  DatePickerBean: version 3.0  ]

Hi Friends,

Problem with previous version of DatePickerBean was that, although you could use it in a standalone application. It didn't worked in a browser.

Suppose you used this bean in an Applet. The Applet works fine if seen within the AppletViewer, but if you tried to use it in a browser ( Internet Explorer) you get an error
-> Failed to initialize applet.

Now I have fixed this.

You now have a method called :- public void inBrowser(boolean)
set this property to true ie. inBrowser(true)

If this property is set to true, the entire working of this Bean remains similar with a few Differences. They are as follows

1.
AutoCalendarPosition will be ignored.

The Calendar will be Centered w.r.t. 800 X 600  screen resolution.
I feel the position of the calendar is of little importance to our programs as long as you can see the calendar.

Reason for the change:
----------------------
DatePickerBean uses Toolkit class to find the screen resolutions and position of DatePicker
But the browser (Internet Explorer) doesn't recognize it and it is unable to load the applet.

Hence AutoCalendarPosition method is ignored.


2. 
:-Working of addDatePickerListener(DatePickerListener dpl) 
public void removeDatePickerListener()

Normally you may have many listeners for one particular DatePicker object.
But if this value is set to true then you can have only one listener per DatePicker object ie. the most current one.

By Default this value is set to FALSE 


Reason for the change:
----------------------
DatePickerBean uses the Vector class to keep track of all the listener (dpl parameter of the above method) of the DatePicker object.
But the browser (Internet Explorer) fails to recognize even this & it is unable to load he applet.


Rest of the working of the bean is the completely the same.
I suggest that while in a browser if you are unable to load DatePicker or see the Calendar when DatePicker is pressed set inBrowser value to true. ie. inBrowser(true);

DEMO: myapp.java & myapp.html


THIS NEW BEAN IS TESTED ON Internet Explorer 5.0
If you find any problem using this bean please get back to me.


Thank You .
Pramod S. Jaiswal.
(pramodjaiswal@hotmail.com) 



