ActiveX and Beans Previous
Previous
Welcome
Welcome
Next
Next

JCalendar Demo

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:

  1. Type "register.bat" in the JCalendar directory to register the bean.
  2. Start Visual Basic, find the component JCalendar and put it in a form.
  3. Add a method for JCalendar events such as yearChanged and monthChanged.
  4. Run the bean in VB and use the keyboard or mouse to change the date.

Applet Calendar


Remarks:
This bean was built with AFC, and requires Internet Explorer 4.0 to function completely.

Top © 1996-1997 Microsoft Corporation. All rights reserved.