mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
centralize alignment
This commit is contained in:
parent
3823ca1403
commit
26091c4c58
@ -195,12 +195,13 @@ public class ExcelExport {
|
||||
//headerFont.setFontHeightInPoints((short) 14);
|
||||
|
||||
// Create a CellStyle with the font
|
||||
HorizontalAlignment alignment = HorizontalAlignment.LEFT;
|
||||
CellStyle headerCellStyle = workbook.createCellStyle();
|
||||
headerCellStyle.setFont(headerFont);
|
||||
headerCellStyle.setAlignment(HorizontalAlignment.LEFT);
|
||||
headerCellStyle.setAlignment(alignment);
|
||||
|
||||
CellStyle defaultCellStyle = workbook.createCellStyle();
|
||||
defaultCellStyle.setAlignment(HorizontalAlignment.LEFT);
|
||||
defaultCellStyle.setAlignment(alignment);
|
||||
|
||||
WorksheetEnv env = new WorksheetEnv(headerCellStyle, defaultCellStyle, workbook);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user