public CardPanel getCardPanelForCard(Card card) { CardPanel found = null; Iterator<PlayerPanel> playerPanelIt = players.iterator(); while (playerPanelIt.hasNext() && found == null) { PlayerPanel pPanel = playerPanelIt.next(); CardZonePanel panel = pPanel.getHandPanel(); found = panel.getCardPanelForCard(card); if (found == null) { panel = pPanel.getFieldPanel(); found = panel.getCardPanelForCard(card); } } return found; }