Object[] oa = hsYears.toArray(); for (int x = 0; x < oa.length; x++) { m_chYear.addItem((String)oa[x]); } m_chYear.select("3025");
m_chWeightClass.addItem("Light"); m_chWeightClass.addItem("Medium"); m_chWeightClass.addItem("Heavy"); m_chWeightClass.addItem("Assault");
    private void populateChoices(MechSummary[] msa) {        HashSet hsYears = new HashSet();        for (int x = 0; x < msa.length; x++) {            hsYears.add(String.valueOf(msa[x].getYear()));        }                Object[] oa = hsYears.toArray();        for (int x = 0; x < oa.length; x++) {            m_chYear.addItem((String)oa[x]);        }        m_chYear.select("3025");                for (int i = 0; i < TechConstants.T_NAMES.length; i++) {            m_chType.addItem(TechConstants.T_NAMES[i]);        }    }