设置了table的绝对宽度之后,还要设置LockedWidth=true让它生效 title.setTotalWidth(tableWidth); title.setLockedWidth(true);