int auxWidth = 0;
boolean firstTime = true;
List auxList = new ArrayList(djcross.getColumns());
Collections.reverse(auxList);
for (Iterator iterator = auxList.iterator(); iterator.hasNext();) {
DJCrosstabColumn col = (DJCrosstabColumn) iterator.next();
if (col.equals(crosstabColumn)){
if (auxWidth == 0)
auxWidth = col.getWidth();
break;
}
if (firstTime){
auxWidth += col.getWidth();
firstTime = false;
}
if (col.isShowTotals()) {
auxWidth += col.getWidth();
}
}
return auxWidth;
}