Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Made top label change
Browse files Browse the repository at this point in the history
  • Loading branch information
tilosp committed Apr 6, 2016
1 parent ced76bf commit e6145f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/de/tilosp/chess/gui/ChessboardGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void componentResized(ComponentEvent e) {


sidePanel.add(Box.createVerticalGlue(), BorderLayout.CENTER);
topLabel = new JLabel("White");
topLabel = new JLabel();
topLabel.setFont(FONT_LABEL);
topLabel.setBorder(BORDER_INSERTS);

Expand Down Expand Up @@ -248,5 +248,6 @@ private void updateIcons() {
// update promotion buttons
for (int i = 0; i < 4; i++)
promotionButtons[i].setEnabled(chessboard.promotion && players[chessboard.playerColor.ordinal()] instanceof LocalPlayer);
topLabel.setText(chessboard.playerColor.toString().toLowerCase());
}
}

0 comments on commit e6145f4

Please sign in to comment.