String message = "There were some warnings reported when loading the project. The project may not work as intended.";
return new JLabel(message, AlertIcons.WARNING, SwingConstants.LEADING);
}
private KongaTable createTable(Collection<ProjectLoadingIssue> issues) {
KongaTable table = ComponentFactories.tableFactory().newSortedTable(new IssuesTableModel(issues), 8);
table.setSortingStatus(IssuesTableModel.MESSAGE, SortOrder.ASCENDING);
TableColumnModel columns = table.getColumnModel();
TableColumn col = columns.getColumn(table.indexOfColumn(IssuesTableModel.LEVEL));
col.setCellRenderer(new LevelRenderer());
col.setMaxWidth(50);
col.setMinWidth(30);
TableStyles.wide().makeOver(table);
return table;