Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in Flextable, how to set a row with special column width

 
peter tong
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to set a row with a special column widht compared with other row.
I try the following:


but the result is very strange,
the output seems something like combination of row1 column widht and row 2 column width.
e.g. column 1 is 15%, column 2 is 45%!!!
how to set a row with special column width using Flextable?
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using FlexTable#getFlexCellFormatter#setColSpan()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic