Allow color change of 'today' when selected.
This commit is contained in:
@@ -152,9 +152,7 @@ public class CalendarPanel extends JPanel {
|
|||||||
if (isSelected) {
|
if (isSelected) {
|
||||||
g.setColor(new Color(173, 216, 230));
|
g.setColor(new Color(173, 216, 230));
|
||||||
g.fillRect(x, y, cellWidth, cellHeight);
|
g.fillRect(x, y, cellWidth, cellHeight);
|
||||||
}
|
} else if (isToday) {
|
||||||
|
|
||||||
if (isToday) {
|
|
||||||
g.setColor(new Color(255, 200, 100));
|
g.setColor(new Color(255, 200, 100));
|
||||||
g.fillRect(x, y, cellWidth, cellHeight);
|
g.fillRect(x, y, cellWidth, cellHeight);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user