if (table.getSelectedRowCount() == 0) { ErrorMsg.reportError("Error", "No Patch Selected."); return;
ErrorMsg.reportStatus("delete patch : " + table.getSelectedRowCount()); int[] ia = table.getSelectedRows();  table.clearSelection();  for (int i = ia.length; i > 0; i--) { ErrorMsg.reportStatus("i = " + ia[i - 1]); myModel.removeAt(ia[i - 1]);
    public void deleteSelectedPatch() {        if (table.getSelectedRowCount() == 0) {            ErrorMsg.reportError("Error", "No Patch Selected.");            return;        }        myModel.removeAt(table.getSelectedRow());        myModel.fireTableDataChanged();        //statusBar.setText(myModel.getRowCount() + " Patches");    }