// Create the widget and add it to the proper section widget.
SectionWidget sectionWidget =
Designer.findWindowFor(report).findSectionWidgetFor(s);
aggregateWidget = new FieldWidget(null, aggregate);
sectionWidget.addField(aggregateWidget);
// For some reason we need to force a repaint of the section. Can't
// just call invalidate.
sectionWidget.repaint();
}