BankDriver myDriver=(BankDriver)PatchEdit.getDriver(myPatch.deviceNum,myPatch.driverNum);
BankDriver myDriver=(BankDriver)myPatch.getDriver();
    public void ExtractSelectedPatch() {        if (table.getSelectedRowCount()==0) {            ErrorMsg.reportError("Error","No Patch Selected.");            return;        }        Patch myPatch=myModel.getPatchAt(table.getSelectedRow());        BankDriver myDriver=(BankDriver)PatchEdit.getDriver(myPatch.deviceNum,myPatch.driverNum);        for (int i=0;i<myDriver.getNumPatches();i++)            if (myDriver.getPatch(myPatch,i)!=null) myModel.addPatch(myDriver.getPatch(myPatch,i));        myModel.fireTableDataChanged();        changed=true;        //   statusBar.setText(myModel.PatchList.size()+" Patches");    }