myModel.removeAt(table.getSelectedRow()); myModel.fireTableDataChanged();
changed();
    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");    }