DatabaseControl[] DBControls = curControlForm.getDatabaseControls();
for (int n = 0; n < DBControls.length; n++)
{
if (DBControls[n].xServiceInfo.supportsService("com.sun.star.drawing.ShapeCollection"))
{
TimeStampControl oTimeStampControl = (TimeStampControl) DBControls[n];
for (int i = 0; i < 2; i++)
{
XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
if (xPropertySet.getPropertySetInfo().hasPropertyByName("Border"))
{
xPropertySet.setPropertyValue("Border", IBorderValue);
}
}