From db80ef14ee1b543264d1ddb834dd0d3dc1fbcac3 Mon Sep 17 00:00:00 2001 From: lodici Date: Fri, 24 Feb 2017 03:10:54 +0000 Subject: [PATCH] remove debug try..catch. --- src/magic/ui/deck/games/PlayerCellRenderer.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/magic/ui/deck/games/PlayerCellRenderer.java b/src/magic/ui/deck/games/PlayerCellRenderer.java index 6cad43cefa..2d2c2ef495 100644 --- a/src/magic/ui/deck/games/PlayerCellRenderer.java +++ b/src/magic/ui/deck/games/PlayerCellRenderer.java @@ -10,10 +10,8 @@ import javax.swing.table.DefaultTableCellRenderer; class PlayerCellRenderer extends DefaultTableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { - String text = ""; - try { PlayerInfo playerInfo = (PlayerInfo) value; - text = playerInfo.isHuman() + String text = playerInfo.isHuman() ? String.format("
%s
", playerInfo.getHumanPlayerName() ) @@ -24,9 +22,6 @@ class PlayerCellRenderer extends DefaultTableCellRenderer { playerInfo.getAiXtraLife(), playerInfo.getAiType().toString() ); - } catch (Exception ex) { - text = "!!!"; - } JLabel lbl = new JLabel(text); lbl.setHorizontalAlignment(SwingConstants.CENTER); lbl.setOpaque(true);