Browse Source

Refratoring background color

main
Thoumi Ngonga Brice 2 years ago
parent
commit
3a4b85e9b3
  1. 2
      src/main/java/BattleShip/AIGridGUI.java

2
src/main/java/BattleShip/AIGridGUI.java

@ -527,7 +527,7 @@ public class AIGridGUI extends JPanel {
//If mouse released, place ship and color ship cells.
if(action == 2) {
bsb.setCellContents(shipToPlace);
bsb.setBackground(Color.gray);
bsb.setBackground(Color.blue);
bsb.setBorder(raisedbevel);
} else {
//If mouse exited, unhighlight cells.

Loading…
Cancel
Save