This sample is located in \Samples\ActiveX\JCalendar.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample is a complete JavaBean with properties, events, icons, and property editors. The sample displays a calendar with dates that can be selected using the mouse (clicking dates in the calendar or selecting the buttons that follow the calendar) or the keyboard (arrow keys, PAGE UP, and PAGE DOWN keys).
You must have Microsoft® Internet Explorer 4.0 or later installed to use this sample.
To use the sample
Selecting a date in a different year displays a dialog box notifying you of the year change.
To edit the Bean in Microsoft Visual Basic
This class creates the JCalendar class and implements the Serializable interface. The code defines methods (writeObject and readObject) for custom serialization of JCalendar so that it can be written to and read from the hard disk. It also registers listeners for mouse-click and arrow key events, contains methods for displaying the calendar, processes user input, and fires events.
JCalendarBeanInfo.javaThis class provides additional information about the calendar JavaBean. It provides a list of properties and specifies their editors.
JCalendarListener.javaThis class defines the listener interface for the calendar JavaBean. It defines year-, month-, and date-change events.
JCalendarMonthEditor.javaThis class defines an editor for the calendar month.
JCalendarYearEditor.javaThis class defines an editor for the calendar year.