Suppose your report variable is called jasperReport
JasperReport jasperReport;
You need to get the group (JRBand) that your column is in. Assuming it is in the detailed range:
JRBand band = jasperReport.getDetail();
And then find your column and change its width:
JRElement column = band.getElementByKey("key_for_column");
column.setWidth(123);
Tjazo source
share