getColumnFormatter().getElement(2).setAttribute("width", "0px"); detailsTable.getColumnFormatter().getElement(2).setAttribute("width", "0px");
/*************************************** * Returns the width of a certain table column. * * @param nColumn The column index * * @return The column width in pixels */ private int getColumnWidth(int nColumn) { String sHtmlWidth = aColumnHeaders.get(nColumn).getColumnWidth(); int nWidth; if (sHtmlWidth != null) { nWidth = Integer.parseInt(sHtmlWidth.substring(0, sHtmlWidth.length() - 2)); } else { nWidth = aHeaderTable.getColumnFormatter().getElement(nColumn) .getOffsetWidth(); } return nWidth; }