Telcontar
Telcontar

Reputation: 4870

JCalendar: how to change the foreground color of certain days?

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?

Upvotes: 0

Views: 1401

Answers (1)

Simon
Simon

Reputation: 706

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.

Upvotes: 1

Related Questions