playerList.add(playerDisplay.toString());
((DefaultListModel) playerList.getModel()).addElement(playerDisplay.toString());
    public static void refreshPlayerList(List playerList, Client client) {        playerList.removeAll();        for (Enumeration e = client.getPlayers(); e.hasMoreElements();) {            final Player player = (Player) e.nextElement();            StringBuffer playerDisplay = new StringBuffer(player.getName());            if (player.isGhost()) {                playerDisplay.append(" ["); //$NON-NLS-1$                playerDisplay.append(Messages.getString("PlayerListDialog.player_ghost")); //$NON-NLS-1$                playerDisplay.append(']'); //$NON-NLS-1$            } else if (player.isObserver()) {                playerDisplay.append(" [");                 //$NON-NLS-1$                playerDisplay.append(Messages.getString("PlayerListDialog.player_observer")); //$NON-NLS-1$                playerDisplay.append(']'); //$NON-NLS-1$            } else if (player.isDone()) {                playerDisplay.append(" (");                 //$NON-NLS-1$                playerDisplay.append(Messages.getString("PlayerListDialog.player_done")); //$NON-NLS-1$                playerDisplay.append(')'); //$NON-NLS-1$            }            playerList.add(playerDisplay.toString());        }    }