opaque = true;
}
private KongaRowTable createTable(DatabaseObject object) {
Model model = new Model(object, selectable);
KongaTable table = new KongaTable(model);
TableStyles.normal().makeOver(table);
int visibleRows = Intervals.valueWithin(model.getRowCount(), 8, 20);
table.setVisibleRowCount(visibleRows);
table.setRendererPreparer(new TableRendererPreparer() {
@Override
public Component prepare(JTable table, TableCellRenderer renderer, Component fromDefaultPreparation, int row,
int column) {
TableColumnMetaData md = ((Model) table.getModel()).getColumnDescriptor(column);
boolean enabled = (md != Model.NULLABLE) && (md != Model.PRIMARY_KEY);
fromDefaultPreparation.setEnabled(enabled);
return fromDefaultPreparation;
}