lisEntities.add(entity.getDisplayName()
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()
    private void refreshEntities() {        lisEntities.removeAll();        int listIndex = 0;        entityCorrespondance = new int[client.game.getNoOfEntities()];        for (Enumeration i = client.getEntities(); i.hasMoreElements();) {            Entity entity = (Entity)i.nextElement();            lisEntities.add(entity.getDisplayName()                             + " (" + entity.getCrew().getGunnery()                             + "/" + entity.getCrew().getPiloting() + " pilot)"                            + " BV=" + entity.calculateBattleValue());            entityCorrespondance[listIndex++] = entity.getId();        }  }