for (int x = 0; x < m_mechsCurrent.length; x++) { m_mechList.add(formatMech(m_mechsCurrent[x]));
try { m_mechList.setEnabled(false); this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));  for (int x = 0; x < m_mechsCurrent.length; x++) { m_mechList.add(formatMech(m_mechsCurrent[x])); } } finally { this.setCursor(Cursor.getDefaultCursor()); m_mechList.setEnabled(true);
    private void sortMechs()    {        Arrays.sort(m_mechsCurrent, new MechSummaryComparator(m_chSort.getSelectedIndex()));        m_mechList.removeAll();        for (int x = 0; x < m_mechsCurrent.length; x++) {            m_mechList.add(formatMech(m_mechsCurrent[x]));        }        updateWidgetEnablements();        repaint();    }