Try cell.setUseAscender(true);

Yann Massard

Chris Liles schrieb:

Why can't I get my table cells to align their text vertically?
Horizontal alignment works fine, the text in the headers just print at the 
bottom of the cell.

I am trying to center the text in the cell.
I have all my text in chunks so I can set the font.

What am I doing wrong?



                    Table summaryTable = new Table(4);
                    summaryTable.setBorderWidth(0);
                    summaryTable.setPadding(1);
                    summaryTable.setSpacing(1);
                    Cell cell = new Cell(appnameheader);
                    cell.setMaxLines(1);
                    cell.setHorizontalAlignment(Cell.ALIGN_CENTER);
                    cell.setVerticalAlignment(Cell.ALIGN_TOP);
                    cell.setBorderColor(bluebackgound);
                    cell.setBackgroundColor(bluebackgound);
                    cell.setHeader(true);


Thanks!

--
Chris Liles
Air2Web
IT Intern



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to