I am building a table with rows of records and a total row at the end
and try to add a line to separate the total with the rest of the records.
Here is the sample layout, but without the blank row space:
DataOne DataTwo DataThree
row1 11 52 15
row2 22 21 45
_________________________________
total 33 73 60
In order to do that, I set the borderColorTop of each cell in the total row
being black and the other (bottom, left and right) borders being white, hoping
it will add a black line at the top of the total cells/row.
Here is the code:
cell.setBorderColorTop(new Color(0,0,0)); //black
cell.setBorderColorBottom(new Color(255,255,255)); //white
cell.setBorderColorLeft(new Color(255,255,255));
cell.setBorderColorRight(new Color(255,255,255));
However, it ended up with each border of each cell in the total row has a black
line, not just the top border. Do you have any idea how this can happen or is
there any better way to implement a line between 2 rows?
Thank you,
-Li Wang
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php