|
I have a text field which I populate via the following the
TEXT is not visible until you click on the form field. If the text is
longer than the field it shows. Is there a way to show it without having
to click on it? TextField text; text = new TextField(writer, border, "name"); yet when I put something in it… text.setText(qty); and put it in a PdfFormField PdfFormField[] qtyArr = new PdfFormField[v.size()]; qtyArr[b] = text.getTextField(); qtyArr[b].setFieldName("qty" + b); cell = new PdfPCell(); cell.setMinimumHeight(10f); cell.setCellEvent(new CreateOrder(qtyArr[b])); cell.cloneNonPositionParameters(border); order_table.addCell(cell); private PdfFormField field; public CreateOrder(PdfFormField field) { this.field
= field; } public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[]
canvases) { field.setWidget(position,
null); } |
------------------------------------------------------------------------- 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
