I'm trying to create a calendar to display and modify a schedule. To do this I have to change the color of some dates in that calendar. I have followed examples that created a RangeEvaluator
and managed to highlight the dates. The problem is that if I click that date (and I need to in order to modify it from busy to free for exemple) its color goes back to normal.
Here is my code:
RangeEvaluator evaluator = new RangeEvaluator();
//get dates from DB:
Vector<Date> vd=SA.getCalendrier(transport);
evaluator.setVd(vd);
calendar.getDayChooser().addDateEvaluator(evaluator);