开发者

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 t开发者_如何转开发he present API or i have to modify the source code?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜