TableCellEditor (DetectedRootData o) { ComboBox<DetectedProjectRoot> comboBox = new ComboBox<>(new CollectionComboBoxModel<>(Arrays.asList(o.getAllRoots()), o.getSelectedRoot())); comboBox.setRenderer(SimpleListCellRenderer.create("", DetectedProjectRoot::getRootTypeName)); return new DefaultCellEditor(comboBox); }