Bold text added
This commit is contained in:
parent
9f25270371
commit
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) {
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue