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