From f8adb7402e611c77b9b3d0e0c903f6114e6fea9f Mon Sep 17 00:00:00 2001 From: dDogge <> Date: Tue, 12 Dec 2023 23:11:04 +0100 Subject: [PATCH] Bold text added --- app/src/main/java/gui/SudokuView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gui/SudokuView.java b/app/src/main/java/gui/SudokuView.java index 7cd86eb..ac30cbb 100644 --- a/app/src/main/java/gui/SudokuView.java +++ b/app/src/main/java/gui/SudokuView.java @@ -49,7 +49,10 @@ public class SudokuView extends JFrame { if ((row / 3 + col / 3) % 2 == 1) { grid[row][col].setBackground(Color.LIGHT_GRAY); } - + + Font boldFont = new Font(grid[row][col].getFont().getName(), Font.BOLD, grid[row][col].getFont().getSize()); + grid[row][col].setFont(boldFont); + grid[row][col].setForeground(Color.BLACK); gridPanel.add(grid[row][col]); } }