} else if (ie.getSource() == m_mechList) { MechSummary ms = m_mechsCurrent[m_mechList.getSelectedIndex()]; try { Entity entity = new MechFileParser(ms.getSourceFile(), ms.getEntryName()).getEntity(); MechView mechView = new MechView(entity); m_mechView.setEditable(false); if (mechView.isValid()) { m_mechView.setText(mechView.getMechReadout()); } else { m_mechView.setText(""); } m_mechView.setCaretPosition(0); } catch (EntityLoadingException ex) { System.out.println("Unable to load mech: " + ms.getSourceFile() + ": " + ms.getEntryName()); ex.printStackTrace(); return; }
    public void itemStateChanged(ItemEvent ie)    {        if (ie.getSource() == m_chSort) {            sortMechs();        }        else if (ie.getSource() == m_chWeightClass || ie.getSource() == m_chType) {            filterMechs();        }    }