Patch myPatch=((Scene)myModel.sceneList.get(table.getSelectedRow())).getPatch(); changed=true; return(myPatch.getDriver().editPatch(myPatch));
Patch myPatch = myModel.getPatchAt(table.getSelectedRow()); changed = true; return myPatch.getDriver().editPatch(myPatch);
    public JSLFrame EditSelectedPatch() {        if (table.getSelectedRowCount()==0) {            ErrorMsg.reportError("Error", "No Patch Selected.");            return null;        }        Patch myPatch=((Scene)myModel.sceneList.get(table.getSelectedRow())).getPatch();        changed=true;        return(myPatch.getDriver().editPatch(myPatch));    }