void () { super.createDefaultRenderers(); UIDefaults.LazyValue booleanRenderer = new UIDefaults.LazyValue() { @Override public Object createValue(@NotNull UIDefaults table) { DefaultCellEditor editor = new DefaultCellEditor(GuiUtils.createUndoableTextField()); editor.setClickCountToStart(1); return new BooleanTableCellRenderer(); } }; //noinspection unchecked defaultRenderersByColumnClass.put(boolean.class, booleanRenderer); //noinspection unchecked defaultRenderersByColumnClass.put(Boolean.class, booleanRenderer); }