Here is my code. It displays whole box:
Table footerTable = new Table(3);
footerTable.setBorder(Rectangle.TOP);
footerTable.setWidth(100);
footerTable.setAlignment("LEFT");
footerTable.setWidths(new int[] {34,32,34});
cel = new Cell("PHS 398/2590 (Rev. 09/04)");
cel.setHorizontalAlignment("LEFT");
cel.setBorder(Rectangle.TOP);
footerTable.addCell(cel);
Cell pageNumberCell = new Cell();
pageNumberCell.setBorder(Rectangle.TOP);
pageNumberCell.add(new RtfTotalPageNumber());
pageNumberCell.setHorizontalAlignment("CENTER");
footerTable.addCell(pageNumberCell);
cel = new Cell("Biographical Sketch Format Page");
cel.setHorizontalAlignment("RIGHT");
cel.setBorder(Rectangle.TOP);
footerTable.addCell(cel);
-Henry
Mark Hall wrote:
>On Thursday 16 November 2006 13:17, Henry Lu wrote:
>
>
>>Thanks for your response. Could you send me a simple code for example? I
>>did that and it displays with a box instead of a top line.
>>
>>
>Use the setBorder(Rectangle.TOP) methods on either the Table or Cell to
>specify only a top border.
>
>Greetings,
>Mark
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/