From 5050c7110145254c21a935e70c1621529735e345 Mon Sep 17 00:00:00 2001 From: CHEVALIER Noemy <noemy.chevalier7@etu.univ-lorraine.fr> Date: Tue, 30 May 2023 14:37:23 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jorur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shukan/ShukanStudent.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shukan/ShukanStudent.java b/shukan/ShukanStudent.java index 81fa86c..147a4a4 100644 --- a/shukan/ShukanStudent.java +++ b/shukan/ShukanStudent.java @@ -48,6 +48,9 @@ public class ShukanStudent extends JPanel{ private final Color GRID_COLOR = Color.BLACK; /** Text color */ private Color TEXT_COLOR = Color.BLACK; + /** Color background, text, hollydays*/ + private Color BACK_COLOR2 = Color.LIGHT_GRAY; + /** Displayed data */ private ShukanData data = null; @@ -74,7 +77,7 @@ public class ShukanStudent extends JPanel{ fontMetrics = g2.getFontMetrics(); fontHeight = fontMetrics.getAscent(); - g2.setColor(BACK_COLOR); + g2.setColor(BACK_COLOR2); g2.fillRect(appliWidth - w, appliHeight - h, w, h); drawBox (g2, appliWidth - w, appliHeight - h, w, h); displayCalendar(g2); @@ -167,5 +170,5 @@ public class ShukanStudent extends JPanel{ public void setForeground(Color c){ TEXT_COLOR = c; repaint(); - } + } } -- GitLab