Perhaps you should reread Bruno's response and actually try what he says. Running your code at my end produces results consistent with the code.
Greetings,
Mark
On Thursday 16 November 2006 13:46, Henry Lu wrote:
> 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
--
You have a strong desire for a home and your family interests come first.
My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpcuVYjVtnT1.pgp
Description: PGP signature
------------------------------------------------------------------------- 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/
