On 1/07/2011 8:50, hhn000 wrote: > Yeah, that's what I ended up doing, I just feel it should be "cleaner" > or "smarter" (I really like the idea of setting borders, etc all in > one place, table.DefaultCell - now I have it in my own method, also > doable) Yes, but suppose you have a table with plenty of "normal cells" (that need the default behavior), and only a couple of "special cells" (that need to be different from the default). How would you override the default cell for these "special cells"? All our own applications use the default cell for quick results. We use PdfPCell (and its properties) whenever we need to make a difference. Sometimes, we use the copy constructor of PdfPCell to create an empty cell with the same properties as the default cell: PdfPCell cell = new PdfPCell(table.getDefaultCell()); This way, we don't have to copy all the properties of the default cell "manually" (that's not the correct work, but you probably know what I mean).
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php