Iterator iter = en.getLoadedUnits().iterator();
Enumeration iter = en.getLoadedUnits().elements();
    public void displayMech(Entity en) {        this.mechTypeL.setText(en.getShortName());        this.statusR.setText(en.isProne() ? "prone" : "normal");        this.playerR.setText(en.getOwner().getName());        this.teamR.setText(en.getOwner().getTeam() == 0 ? "No Team" : "Team " + en.getOwner().getTeam());        this.weightR.setText(Integer.toString((int)en.getWeight()));        this.pilotR.setText(en.crew.getDesc());        StringBuffer mp = new StringBuffer();        mp.append(en.getWalkMP());        mp.append('/');        mp.append(en.getRunMP());        mp.append('/');        mp.append(en.getJumpMPWithTerrain());        if (en.mpUsed > 0) {            mp.append(" (");            mp.append(en.mpUsed);            mp.append(" used)");        }        this.mpR.setText(mp.toString());        this.curMoveR.setText(en.getMovementString(en.moved) + (en.moved == en.MOVE_NONE ? "" : " " + en.delta_distance));                int heatCap = en.getHeatCapacity();        int heatCapWater = en.getHeatCapacityWithWater();        String heatCapacityStr = Integer.toString(heatCap);                if ( heatCap < heatCapWater ) {          heatCapacityStr = heatCap + " [" + heatCapWater + "]";        }                this.heatR.setText(Integer.toString(en.heat) + " (" + heatCapacityStr + " capacity)");        // transport values        String unused = en.getUnusedString();        if ( unused.equals("") ) unused = "None";        this.unusedR.setText( unused );        Iterator iter = en.getLoadedUnits().iterator();        carrysR.setText( null );        while ( iter.hasNext() ) {            carrysR.append( ((Entity)iter.next()).getShortName() );            if ( iter.hasNext() ) {                carrysR.append( "\n" );            }        }        validate();    }