} else {
day = k - firstIndex;
enabled = true;
}
CalendarDate buttonData = new CalendarDate(year, month, day);
dateButton.setButtonData(buttonData);
dateButton.setEnabled(enabled
&& (disabledDateFilter == null
|| !disabledDateFilter.include(buttonData)));
}
}
// Show/hide last row
CalendarDate lastWeekStartDate = (CalendarDate)dateButtons[5][0].getButtonData();
boolean visible = (lastWeekStartDate.month == calendar.getMonth());
for (Component component : calendarTablePane.getRows().get(7)) {
component.setVisible(visible);
}
today = new CalendarDate();
updateSelection(calendar.getSelectedDate());
}