Compare commits
2 commits
536f4e1b7d
...
6ae83248ef
Author | SHA1 | Date | |
---|---|---|---|
|
6ae83248ef | ||
|
f8adb7402e |
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ public class SudokuView extends JFrame {
|
||||||
if ((row / 3 + col / 3) % 2 == 1) {
|
if ((row / 3 + col / 3) % 2 == 1) {
|
||||||
grid[row][col].setBackground(Color.LIGHT_GRAY);
|
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]);
|
gridPanel.add(grid[row][col]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue