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