views:

30

answers:

1

Hello, i'm using the JCalendar v 1.3.3 component and i want to change the foreground color of certain days, by default the present days has red foreground, i want to emphatize other days with other colors. It's posible to archieve this with the present API or i have to modify the source code?

+1  A: 

I believe you'll have to customise the JDayChooser component to make this happen as by default you you can only change the foreground colour of Sundays or Weekdays.

It shouldn't be too hard, take a look at the method drawDayNames() in the JDayChooser class.

Simon