editor = new DefaultCellEditor(box); if (editor == null) { editor = defaultEditor; } }
        protected void selectEditor(MouseEvent e) {            IPatchDriver 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());            }            //    ErrorMsg.reportStatus("selectEditor "+ row);            if ((row != oldrow) || (col != oldcol)) {            oldrow = row;            oldcol = col;            box = new JComboBox();            driver = ((SceneListModel) table.getModel()).getPatchAt(row).getDriver();            String[] patchNumbers = driver.getPatchNumbers();            String[] bankNumbers  = driver.getBankNumbers();            if (patchNumbers.length > 1) {                if (col == BANK_NUM) {                for (int i = 0; i < bankNumbers.length; i++) {                    box.addItem(bankNumbers[i]);                }                } else if (col == PATCH_NUM)                for (int i = 0; i < patchNumbers.length; i++) {                    box.addItem(patchNumbers[i]);                }            }            editor = new DefaultCellEditor(box);            if (editor == null) {                editor = defaultEditor;            }            }        }