Using graphics to highlight
Hi all, be very grateful for a dig out on this one:
I am designing a calendar where different types of days are represented in different ways.
For example, when a 'non-business day' is displayed on the calendar, it is shown surrounded by a red margin.
This is achieved using the following code:
g.setColor(Color.RED);
g.draw3DRect(r.x, r.y, r.width, r.height, true);
I also want to highlight weekend days in blue on the calendar. I thought i could use some sort of a highlight to do this and i tried the following code:
g.setColor(Color.BLUE);
g.fill3DRect(r.x, r.y, r.width, r.height, true);
Now my problem, the above code is effective in that it fills the rectangle blue, however, i dont want to fill the text of the rectangle (e.g. 28,30,31) with blue, i want these to reman visible.
Does anyone know how best to do this, or have had a similar problem in the past?
Thanks a mil
Gav

