for (int sectionIndex = 0, sectionCount = sections.getLength();
sectionIndex < sectionCount; sectionIndex++) {
Form.Section section = sections.get(sectionIndex);
Separator separator = separators.get(sectionIndex);
if (sectionIndex > 0
|| section.getHeading() != null) {
int separatorWidth = Math.max(width - (padding.left + padding.right), 0);
separator.setVisible(true);
separator.setSize(separatorWidth, separator.getPreferredHeight(separatorWidth));
separator.setLocation(padding.left, rowY);
rowY += separator.getHeight();
} else {
separator.setVisible(false);
}
for (int fieldIndex = 0, fieldCount = section.getLength();
fieldIndex < fieldCount; fieldIndex++) {
Label label = labels.get(sectionIndex).get(fieldIndex);