2
Я пытаюсь выровнять текст. Однако текст не выровнен.Apache poi center align
Cell lastCell = lastCell = row.createCell(cellNumber++);
if (value != null) {
lastCell.setCellValue(value);
}
CellStyle cellStyle = lastCell.getCellStyle();
cellStyle.setAlignment(CellStyle.ALIGN_RIGHT);
lastCell.setCellStyle(cellStyle);
Еще одна проблема - я хочу, чтобы стили ячеек были разными для каждой ячейки. –