{
return new ChangeListener()
{
public void stateChanged(ChangeEvent e)
{
CalendarPanel panel = (CalendarPanel) e.getSource();
Calendar calendar = new GregorianCalendar();
calendar.setTimeInMillis(((Date) panel.getValue()).getTime());
int year = calendar.get(Calendar.YEAR);
panel.setModel(brazilianHolidayModel(year));
panel.setEternalScroll(false);
}
};
}