/** * Sets the dealer. * * @param isDealer Whether the player is the dealer. */ private void setDealer(boolean isDealer) { if (dealerName != null) { PlayerPanel playerPanel = playerPanels.get(dealerName); if (playerPanel != null) { playerPanel.setDealer(isDealer); } } }