for (int i = 0 ; i < driver.patchNumbers.length ; i++) { box.addItem(driver.patchNumbers[i]);
for (int i = 0 ; i < patchNumbers.length ; i++) { box.addItem(patchNumbers[i]);
    protected void selectEditor(MouseEvent e) {        Driver driver;        int row,col;                if (e == null) {            row = table.getSelectionModel().getAnchorSelectionIndex();            col=table.getSelectedColumn();        } else {            row = table.rowAtPoint(e.getPoint());            col=table.columnAtPoint(e.getPoint());        }        //    System.out.println("selectEditor "+ row);        if ((row!=oldrow)||(col!=oldcol)) {            oldrow=row;            oldcol=col;            box=new JComboBox();                        driver=((SceneListModel)table.getModel()).getSceneAt(row).getPatch().getDriver();            if (driver.patchNumbers.length > 1) {                if (col==3) {                    for (int i = 0 ; i < driver.bankNumbers.length ; i++) {                        box.addItem(driver.bankNumbers[i]);                    }                }                if (col==4)                    for (int i = 0 ; i < driver.patchNumbers.length ; i++) {                        box.addItem(driver.patchNumbers[i]);                    }            }                        editor = new DefaultCellEditor(box );                        if (editor == null) {                editor = defaultEditor;            }        }    }