Create the cell and contents explicitly so you can apply attributes.

            cell = new Cell("big cell");
            cell.setRowspan(2);
            cell.setColspan(2);
            cell.setHorizontalAlignment(Element.ALIGN_CENTER);
            cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
            cell.setBackgroundColor(new Color(0xC0, 0xC0, 0xC0));
            table.addCell(cell);

This code is directly copied from the tutorial. 
I found it very useful to read the code in the tutorial.


Steve Brady





>Hi, i have the follow problem .....

>In the image, i have two tables ( Table ). The problem is than the text in
>the cells it is on the bottom line of cell .....  how make to this text be
>align in the middle ?????




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to