try {
if (bControlsareCreated){
LabelControlList[i].setPosition(new Point(nXTCPos, nYTCPos));
if (icurArrangement != FormWizard.SOCOLUMNARLEFT){
nTCWidth = LabelControlList[i].getPreferredWidth(FieldColumns[i].FieldTitle);
LabelControlList[i].setSize(new Size(nTCWidth, nTCHeight));
}
else
nTCWidth = LabelControlList[i].getSize().Width;
}
else{
Point aPoint = new Point(nXTCPos, nYTCPos);
Size aSize = new Size(nTCWidth,nTCHeight);
this.LabelControlList[i] = new Control(oFormHandler, xFormName, FormHandler.SOLABEL, FieldColumns[i].FieldName, aPoint, aSize);
if (bIsVeryFirstRun){
if (icurArrangement == FormWizard.SOCOLUMNARTOP)
nYDBPos = nYTCPos + nTCHeight;
}
nTCWidth = LabelControlList[i].getPreferredWidth(FieldColumns[i].FieldTitle);
}
curLabelControl = LabelControlList[i];
if (icurArrangement == FormWizard.SOCOLUMNARLEFT){
// Note This If Sequence must be called before retrieving the outer Points
if (bIsFirstRun){
nMaxTCWidth = nTCWidth;
bIsFirstRun = false;
}
else if (nTCWidth > nMaxTCWidth){
nMaxTCWidth = nTCWidth;
}
}
checkOuterPoints(nXTCPos, nTCWidth, nYTCPos, nTCHeight, false);
if ((icurArrangement == FormWizard.SOCOLUMNARTOP) || (icurArrangement == FormWizard.SOTOPJUSTIFIED)){
nXDBPos = nXTCPos;
nYDBPos = nYTCPos + nTCHeight;
curLabelControl.xPropertySet.setPropertyValue("Align", new Short((short)com.sun.star.awt.TextAlign.LEFT));
}
else
curLabelControl.xPropertySet.setPropertyValue("Align", new Short((short)_iAlign));
if (!bControlsareCreated)
curLabelControl.setSize(new Size(nTCWidth,nTCHeight));
// if (CurHelpText != ""){
// oModel.HelpText = CurHelptext;
// }
} catch (Exception e) {
e.printStackTrace(System.out);