AbstractComponent component = (AbstractComponent) model.getStoredValueAt(table.getSelectedRows()[0], table.getSelectedColumns()[0]);
String id = tableModel.getKey(component);
TableCellSettings settings = tableModel.getCellSettings(id);
return settings.getCellFont();
}
JVMFontFamily defaultFont = TableFormattingConstants.defaultJVMFontFamily;
JVMFontFamily commonCellFont = null;
for (Integer row : table.getSelectedRows()) {
for (Integer col : table.getSelectedColumns()) {
AbstractComponent component = (AbstractComponent) model.getStoredValueAt(row, col);
String id = tableModel.getKey(component);
TableCellSettings settings = tableModel.getCellSettings(id);
JVMFontFamily aCellFont = settings.getCellFont();
if (aCellFont == null) {
aCellFont = defaultFont;
}
if (commonCellFont != null && !aCellFont.equals(commonCellFont)) {
return null;
}
commonCellFont = aCellFont;
}
}