IBankPatch myPatch = (IBankPatch) myModel.getPatchAt(table.getSelectedRow());
IBankPatch myPatch = (IBankPatch) getSelectedPatch();
    void extractSelectedPatch() {        if (table.getSelectedRowCount() == 0) {            ErrorMsg.reportError("Error", "No Patch Selected.");            return;        }        IBankPatch myPatch = (IBankPatch) myModel.getPatchAt(table.getSelectedRow());        for (int i = 0; i < myPatch.getNumPatches(); i++){            ISinglePatch p = myPatch.get(i);            if (p != null)                myModel.addPatch(p);        }        myModel.fireTableDataChanged();        changed = true;        //statusBar.setText(myModel.getRowCount() + " Patches");    }