TreeSet = "";
strTreeSet = "";
    private void refreshEntities() {        lisEntities.removeAll();        int listIndex = 0;        String TreeSet = "";        String TreeView = "";        entityCorrespondance = new int[client.game.getNoOfEntities()];        for (Enumeration i = client.getEntities(); i.hasMoreElements();) {            Entity entity = (Entity)i.nextElement();            if(entity.hasC3i()) {                TreeSet = "";                if(entity.calculateFreeC3Nodes() == 5) TreeSet = "**";                TreeView = " (" + entity.getC3NetId() + ")";            }            else if(entity.hasC3()) {                if(entity.getC3Master() == null) {                    if(entity.hasC3S())                        TreeSet = "***";                    else                        TreeSet = "*";                    TreeView = "";                }                else {                    TreeSet = "";                    if(!entity.C3MasterIs(entity)) {                        TreeSet = ">";                        if(entity.getC3Master().getC3Master() != null && !entity.getC3Master().C3MasterIs(entity.getC3Master()))                            TreeSet = ">>";                        TreeView = " -> " + entity.getC3Master().getDisplayName();                    }                }            }            else {                TreeSet = "";                TreeView = "";            }            lisEntities.add(TreeSet + entity.getDisplayName()            + " (" + entity.getCrew().getGunnery()            + "/" + entity.getCrew().getPiloting() + " pilot)"            + " BV=" + entity.calculateBattleValue() + TreeView);            entityCorrespondance[listIndex++] = entity.getId();        }        boolean unitListEmpty = ( 0 == lisEntities.getItemCount() );        butSaveList.setEnabled( !unitListEmpty );    }