}
private void recalcRowHeight(Graphics g, int iRow) {
int maxHeight = 0;
SheetModel model = table.getModel();
CellRenderer renderer = table.getDefaultRenderer();
for(int iCol=0; iCol<model.getColumnCount(); /* ath the end*/) {
CellPosition pos = model.getOrigin(new CellPosition(iRow, iCol));
Dimension size = model.getSize(pos);
if(size.height > 1 || size.width > 1) {
iCol += size.width;
continue;
}
int width = model.getColumn(iCol).getWidth();
int iHeight = renderer.getPreferredHeight(table, g, model.getValueAt(pos), width);
if(iHeight > maxHeight) {
maxHeight = iHeight;
}
iCol++;
}