Bold text added

This commit is contained in:
dDogge 2023-12-12 23:11:04 +01:00
parent 9f25270371
commit f8adb7402e

View file

@ -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]);
}
}