JDK Sun 1.6_20
DJ 3.1.3, Jasper Reports 3.7.3
Problem appeared since upgrading from DJ 3.0.11, JR 3.5.0
The Footer General Label as described in the HOW TO for Group Labels (http://dynamicjasper.sourceforge.net/docs/HOWTO%20group%20labels.html) does not lay out correctly.
You can reproduce the problem by running GroupLabelTest2 which shows the Subtotal above the group variables instead of to the left. See generated pdf attached. This is different to the picture appears on the how to page.
It appears that a recent release (3.0.13) added the ability to set a LabelPosition. "Enabling custom label expression and position in group footer label (see GroupLabelTest4) Enabling custom label expression in group header/footer variable label (see GroupLabelTest4)"
This eg from GroupLabelTest4:
DJGroupLabel glabel2 = new DJGroupLabel("Total quantity",glabelStyle,LabelPosition.TOP);
So, the solution for GroupLabelTest2, and anyone else upgrading from an older version of DJ to 3.0.13 and beyond is to add LabelPosition.Left
DJGroupLabel glabel3 = new DJGroupLabel("Subtotal" ,glabelStyle2, LabelPosition.LEFT);
The documentation should also be updated on the site, and perhaps noted in a readme/breaking changes section.
Alternatively, if there is a way to make this change backward compatible then great, but its no big deal as long as its documented.
One thing you may like to check though, is that in GroupLabelTest4, if you have a footer variable, rather than footer label, the label position will be top, regardless of whether the label positions specify a label position.
GroupLayoutTest2 failing to layout correctly.
I see, thank you very much for reporting this issue.
I have to have to a conclusion about default label position. The thing is that when first appeared, only left moust column was used for label, since every column can have its label, its kind of natural to send it to the top to "not break" the layout too much.
My doubt is, being DJ too young, should we add a parameter like "dj.default.label.position" with TOP or LEFT value or just document?