Quoting Hui Li <[EMAIL PROTECTED]>: > Hi, Bruno:, > I am trying to use PdfPTable instead of Table. A new problem is that I > can use Table t = new Table(int columns, int rows) to creat a table, > however I cann't creat PdfPtable this way like PdfPTable pt=new > PdfPTable(int columns, int rows). One of useful construtor for me is > PdfPTable = new PdfPTable(int columns), but I really need constructor > or method that takes 2 parameters to set columns and rows. Can you help > me to solve the problem?
Why is this a problem? In class Table, the number of rows is used as the initial size of a Vector: it creates a certain number of row objects in the constructor. But if you add more rows, this number will increase automatically. If you have less rows, the empty rows will be omitted. PdfPTable doesn't have such a constructor, because it isn't necessary to have one. best regards, Bruno _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
