setTableStyle(raw);
return new KongaRowTable(raw);
}
private void setTableStyle(KongaTable table) {
TableStyle style = TableStyles.normal();
style.addRendererPreparer(new BoldFontRenderer() {
@Override
protected boolean isBold(JTable table, int row, int column) {
Object o = ((KongaTable) table).getValueAt(row, KnownServersTableModel.NAME);
return o instanceof ServerName && ((ServerName) o).isConnected();
}
});
style.makeOver(table);
}