This is an example of a full fledged java bean with properties, events, icons, property editors etc.
It displays a calendar which can be customized. For instance you may or may not show the horizontal
grid lines. It generates events whenever the currently selected date changes. You can change the
current date by clicking on the calendar or by using arrow keys
Note: Only IE 4.0 will allow VBScript/JavaScript to detect events fired by the Bean,
specifically the JCalendarApp_yearChanged event.event. Also, beans are a new to the 1.1 Java specification and are not
supported in the IE 3.0 scripting model; please install IE 4.0 to see the full functionality of this sample.
To edit the bean in Visual Basic, perform the following steps:
- Type "register.bat" in the JCalendar directory to register the bean.
- Start Visual Basic, find the component JCalendar and put it in a form.
- Add a method for JCalendar events such as yearChanged and monthChanged.
- Run the bean in VB and use the keyboard or mouse to change the date.
Remarks:
This bean was built with AFC, and requires Internet Explorer 4.0 to function completely.
|