ColumnInfo () { return new ColumnInfo("VALUE") { @Override public @Nullable Object valueOf(Object o) { if (o instanceof SettingsTreeNode) { return ((SettingsTreeNode) o).getValueString(); } else { return null; } } @Override public TableCellRenderer getRenderer(Object o) { return myValueRenderer; } @Override public TableCellEditor getEditor(Object o) { return myValueEditor; } @Override public boolean isCellEditable(Object o) { return o instanceof SettingsTreeNode; } }; }