String sUnitType = m_chUnitType.getSelectedItem();
int nUnitType = m_chUnitType.getSelectedIndex();
    private void filterMechs()    {        Vector vMechs = new Vector();        String sClass = m_chWeightClass.getSelectedItem();        int nWeight = 0;        if (sClass.equals(Messages.getString("MechSelectorDialog.Light"))) { //$NON-NLS-1$            nWeight = Entity.WEIGHT_LIGHT;        }        else if (sClass.equals(Messages.getString("MechSelectorDialog.Medium"))) { //$NON-NLS-1$            nWeight = Entity.WEIGHT_MEDIUM;        }        else if (sClass.equals(Messages.getString("MechSelectorDialog.Heavy"))) { //$NON-NLS-1$            nWeight = Entity.WEIGHT_HEAVY;        }        else if (sClass.equals(Messages.getString("MechSelectorDialog.Assault"))) { //$NON-NLS-1$            nWeight = Entity.WEIGHT_ASSAULT;        }        int nType = m_chType.getSelectedIndex();        String sType = m_chType.getSelectedItem();        String sUnitType = m_chUnitType.getSelectedItem();        MechSummary[] mechs = MechSummaryCache.getInstance().getAllMechs();        if ( mechs == null ) {            System.err.println( "No units to filter!" ); //$NON-NLS-1$            return;        }        for (int x = 0; x < mechs.length; x++) {            if ( /* Weight */                (sClass.equals(Messages.getString("MechSelectorDialog.All")) || mechs[x].getWeightClass() == nWeight) //$NON-NLS-1$                && /* Technology Level */                (sType.equals(Messages.getString("MechSelectorDialog.All")) //$NON-NLS-1$                 || (sType.equals(Messages.getString("MechSelectorDialog.ISAll")) && //$NON-NLS-1$                     mechs[x].getType() <= TechConstants.T_IS_LEVEL_2)                 || (sType.equals(Messages.getString("MechSelectorDialog.ISAndClan")) && //$NON-NLS-1$                     (mechs[x].getType() <= TechConstants.T_IS_LEVEL_2 ||                      mechs[x].getType() == TechConstants.T_CLAN_LEVEL_2))                 || (sType.equals(Messages.getString("MechSelectorDialog.MixedAll")) && //$NON-NLS-1$                     (mechs[x].getType() ==                      TechConstants.T_MIXED_BASE_IS_LEVEL_2 ||                      mechs[x].getType() ==                      TechConstants.T_MIXED_BASE_CLAN_LEVEL_2))                 || TechConstants.T_NAMES[mechs[x].getType()].equals(sType))                && /* Unit Type (Mek, Infantry, etc.) */                ( sUnitType.equals( Messages.getString("MechSelectorDialog.All") ) || //$NON-NLS-1$                  mechs[x].getUnitType().equals(sUnitType) ) )                {                    vMechs.addElement(mechs[x]);                }        }        m_mechsCurrent = new MechSummary[vMechs.size()];        vMechs.copyInto(m_mechsCurrent);        sortMechs();    }