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