TableCellRenderer (Item pair) { JTextField cellEditor = new JTextField(); cellEditor.putClientProperty(DarculaUIUtil.COMPACT_PROPERTY, Boolean.TRUE); return new ValidatingTableCellRendererWrapper(new DefaultTableCellRenderer()). withCellValidator((value, row, column) -> validationInfoProducer.apply(value, null)). bindToEditorSize(cellEditor::getPreferredSize); }