The calendar view sample displays the monthly calendar, moves for each month, and moves for each day using the JFCalendarView class.
The calendar view sample uses the following classes:
JFCalendarView
JFCalendar
JFCheckList
JFFieldString
JFGroupbox
JFImageButton
JFPanel
Figure 1.4 Calendar view sample
Operation method
Sets the memo on the specified date and displays the image.
JFCalendarView
Displays the calendar and selects the date.
Memo
Select the date and specify the memo to be set.
Image
Select the date and specify the image to be set. Use the right-end button to cancel the image setup.
Image Alignment
Specify the position for displaying the image with Choice. Specifiable positions are as follows:
View positions: All Area/Top Left/Top/Top Right/Left/Center/Right/Bottom Left/Bottom/Bottom Right
Date Alignment
Specify the position for displaying the date with Choice. Specifiable positions are as follows:
View positions: Top Left/Top/Top Right/Left/Center/Right/Bottom Left/Bottom/Bottom Right
Selection Mode
Specify the mode for selecting the date with Choice. The selection modes are as follows:
Single select: Only one day can be selected.
Multi select: Multiple selections are enabled.
Bounds select: Selection with the range is enabled.
View Memo
Specify the view method when the memo has been set. The item containing a check in the check box is enabled.
View Marker: The marker appears in the upper-right corner of the date position to which the memo has been set.
View ToolTips: Moving the mouse cursor to the position of the date to which the memo has been set displays the tooltip.
Last Month/Last Day/Today/Next Day/Next Month
The buttons for operating the calendar are explained as follows:
Last Month: Returns to the same day of the previous month.
Last Day: Returns to the previous day.
Today: Returns to the date the sample was executed.
Next Day: Goes to the next day.
Next Month: Goes to the same day of the next month.
Source codes
Calendar view sample:"Sample Storage Destinations"/jfcalendarview/JFCalendarViewSample.java