private final KongaTable table;
public AvailabilityResultTable(String caption, AvailabilityResultTableModel model) {
this.caption = caption;
TableFactory factory = ComponentFactories.tableFactory();
table = factory.newSortedTable(model);
table.setSortingStatus(PROBLEM, SortOrder.DESCENDING);
table.setCellRendererFor(NAME, new PluginRenderer());
table.setCellRendererFor(PROBLEM, new ProblemRenderer());
table.setVisibleRowCount(5);
TableStyles.normal().makeOver(table);