myModel.fireTableDataChanged(); statusBar.setText(myModel.getRowCount() + " Patches");
changed();
    void deleteDuplicates() {        Collections.sort(myModel.getList(), new SysexSort());        int numDeleted = 0;        Iterator it = myModel.getList().iterator();        byte[] p = ((IPatch) it.next()).getByteArray();        while (it.hasNext()) {            byte[] q = ((IPatch) it.next()).getByteArray();            if (Arrays.equals(p, q)) {                it.remove();                numDeleted++;            } else                p = q;        }        JOptionPane.showMessageDialog(null, numDeleted                + " Patches were Deleted", "Delete Duplicates",                JOptionPane.INFORMATION_MESSAGE);        myModel.fireTableDataChanged();        statusBar.setText(myModel.getRowCount() + " Patches");    }