}
};
// Set the style and apply it to the data template via the
// setRowProperties() method
dataTemplate.createRegion(new XYRect(0, 0, 1, 4), _style);
dataTemplate.setRowProperties(0, new TemplateRowProperties(Font
.getDefault().getHeight()
+ (_style.getBorder() == null ? 0 : _style.getBorder().getTop()
+ _style.getBorder().getBottom())
+ (_style.getMargin() == null ? 0 : _style.getMargin().top
+ _style.getMargin().bottom)));
for (int i = 0; i < NUM_ROWS; i++) {
dataTemplate.createRegion(new XYRect(1, i, 1, 1), _style);
dataTemplate.setRowProperties(i, new TemplateRowProperties(Font
.getDefault().getHeight()
+ (_style.getBorder() == null ? 0 : _style.getBorder()
.getTop()
+ _style.getBorder().getBottom())