Commit a771ed9e authored by kimia's avatar kimia

color

parent 7bc51122
......@@ -46,7 +46,7 @@ public class ChessBoardGUI extends JPanel {
if(moveBoard[finalI][finalJ] && source!=null && dest!=null){
movePiece(source,dest);
// System.out.println("Moves");
buttonRepaint();
updateDeletedPanel();
//----------------
int condition = checkCondition(board,pw,pb);
......@@ -68,7 +68,7 @@ public class ChessBoardGUI extends JPanel {
});
add(button[i][j]);
if((i+j)%2==0)
button[i][j].setBackground(Color.CYAN);
button[i][j].setBackground(Color.lightGray);
else {
button[i][j].setBackground(Color.WHITE);
}
......@@ -80,7 +80,7 @@ public class ChessBoardGUI extends JPanel {
for (int i = 0 ; i < 8 ;i++){
for (int j = 0 ; j < 4 ;j++) {
removedPieces[i][j] = new JButton();
removedPieces[i][j].setBackground(Color.orange);
removedPieces[i][j].setBackground(Color.pink);
// added.setMinimumSize(new Dimension(50,50));
removedPiecePanel.add( removedPieces[i][j]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment