when you add a property to a form in the form of
formBuilder.add( propertyName, attributes)
the jLabel is not afected by the attutes defined.
More precisely, if an valign or rowspan attribute is specified it should also be applied to the label.
Proposal of a fix:
replace the method in the class org.springframework.richclient.form.builder.TableFormBuilder
public String getLabelAttributes() {
return labelAttributes;
}
for an alternate implementation
public String getLabelAttributes(String fieldProperties) {
String theLabelAttributes = labelAttributes;
int valignStartIndex = fieldProperties.indexOf(TableLayoutBuilder.VALIGN);
if( valignStartIndex!=-1){
int valignEndIndex = fieldProperties.indexOf(" ",valignStartIndex);
theLabelAttributes += (" "+theLabelAttributes.substring(valignStartIndex, valignEndIndex));
}
int rowStartIndex = fieldProperties.indexOf(TableLayoutBuilder.ROWSPAN);
if( rowStartIndex!=-1){
int rowEndIndex = fieldProperties.indexOf(" ",valignStartIndex);
theLabelAttributes += (" "+theLabelAttributes.substring(rowStartIndex, rowEndIndex));
}
return theLabelAttributes;
}
A proposed patch to the issue