Patch myPatch = myModel.getPatchAt(table.getSelectedRow());
IPatch myPatch = myModel.getPatchAt(table.getSelectedRow());
    public JSLFrame editSelectedPatch() {        if (table.getSelectedRowCount() == 0) {	    ErrorMsg.reportError("Error", "No Patch Selected. EditAction must be disabled.");	    return null;	}	Patch myPatch = myModel.getPatchAt(table.getSelectedRow());        changed = true;        return myPatch.getDriver().editPatch(myPatch);    }