I used “fontchanger” to enlarge the text of the cell, but the width of the cell was not adjusted accordingly, resulting in only half of the enlarged font. I used many methods to try to solve it, but it didn’t work very well. Of course, I set the width of the page is also a small part of the reason.
1、table.autoFit(AutoFitBehavior.AUTO_FIT_TO_WINDOW); 2、 table.setPreferredWidth(PreferredWidth.fromPercent(100)); 3、cell.getCellFormat().setPreferredWidth(PreferredWidth.AUTO);
How can I solve this problem? Thank you
InkedScreenshot_2020-04-03-17-33-47-77_841797baea012d5_LI.jpg (210.4 KB)
表格2.zip (28.8 KB)