final MasterReport report = new MasterReport();
report.setDataFactory(new TableDataFactory
("default", tableModel));
final RelationalGroup group = new RelationalGroup();
group.setName("Run");
group.addField("run");
LabelElementFactory labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Crew:");
group.getHeader().addElement(labelFactory.createElement());
TextFieldElementFactory textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("crew");
textFieldFactory.setAbsolutePosition(new Point2D.Float(50, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(100, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Trial:");
group.getHeader().addElement(labelFactory.createElement());
textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("trial");
textFieldFactory.setAbsolutePosition(new Point2D.Float(150, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Run:");
group.getHeader().addElement(labelFactory.createElement());
textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("run");
textFieldFactory.setAbsolutePosition(new Point2D.Float(250, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
group.getFooter().getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(15));
report.addGroup(group);
final Band b = new Band();
b.setName("variables");