From adcd9d84c66f2c7b2fe51f56eb0c70db0ec5a97b Mon Sep 17 00:00:00 2001 From: johnm Date: Mon, 25 May 2020 16:49:12 +0100 Subject: [PATCH] Single setPlayerName method. --- .../src/main/java/mage/client/table/NewPlayerPanel.java | 6 ------ .../src/main/java/mage/client/table/TablePlayerPanel.java | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/table/NewPlayerPanel.java b/Mage.Client/src/main/java/mage/client/table/NewPlayerPanel.java index c41c5873f7..5394c5640a 100644 --- a/Mage.Client/src/main/java/mage/client/table/NewPlayerPanel.java +++ b/Mage.Client/src/main/java/mage/client/table/NewPlayerPanel.java @@ -45,12 +45,6 @@ public class NewPlayerPanel extends javax.swing.JPanel { this.txtPlayerName.setEditable(false); this.txtPlayerName.setEnabled(false); } - - public void setPlayerName(String playerName, boolean editable, boolean enabled) { - this.txtPlayerName.setText(playerName); - this.txtPlayerName.setEditable(editable); - this.txtPlayerName.setEnabled(enabled); - } protected void playerLoadDeck() { String lastFolder = MageFrame.getPreferences().get("lastDeckFolder", ""); diff --git a/Mage.Client/src/main/java/mage/client/table/TablePlayerPanel.java b/Mage.Client/src/main/java/mage/client/table/TablePlayerPanel.java index a736c414ff..2ced51179f 100644 --- a/Mage.Client/src/main/java/mage/client/table/TablePlayerPanel.java +++ b/Mage.Client/src/main/java/mage/client/table/TablePlayerPanel.java @@ -126,7 +126,7 @@ public class TablePlayerPanel extends javax.swing.JPanel { private void cbPlayerTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbPlayerTypeActionPerformed if (getPlayerType() != PlayerType.HUMAN) { this.newPlayerPanel.setVisible(true); - this.newPlayerPanel.setPlayerName("Computer " + this.lblPlayerNum.getText().charAt(this.lblPlayerNum.getText().length() - 1),true,true); + this.newPlayerPanel.setPlayerName("Computer " + this.lblPlayerNum.getText().charAt(this.lblPlayerNum.getText().length() - 1)); } else { this.newPlayerPanel.setVisible(false);