generating lists in a table cell,
September 11, 2007 at 3:32 PM
how can I build a list in a table cell? List list = new List(false, 10); Paragraph p1 = new Paragraph(); list.add(new ListItem("111")); list.add(new ListItem("222")); list.add(new ListItem("333")); p1.add(list); document.add(p1); // this works
PdfPTable table3 = new PdfPTable(1); PdfPCell cell = new PdfPCell(); cell.addElement(p1); table3.addCell(cell); document.add(table3); // this doesn't work no list is generated, rather a long text.