Hallo.

I want to display justified text in a table cell. I've tried the following
code:

            Table table = new Table(1);
            table.setBorderWidth(1);
            table.setBorderColor(new Color(0, 0, 255));
            table.setPadding(0);
            table.setSpacing(0);
            Paragraph paragraph = new Paragraph("Attributes in an object
that implements the Attributes interface are unordered. The object can have
zero or more attributes. Attributes is either case-sensitive or
case-insensitive (case-ignore). This property is determined at the time the
Attributes object is created. (see BasicAttributes constructor for example).
In a case-insensitive Attributes, the case of its attribute identifiers is
ignored when searching for an attribute, or adding attributes. In a
case-sensitive Attributes, the case is significant.");
            paragraph.setAlignment(Paragraph.ALIGN_JUSTIFIED);
            Cell cell = new Cell(paragraph);
            table.addCell(cell);

But the result is rather decieving: The text appears leftly aligned, as if I
never had played with the paragraph.setAlignment() method.
Do you know what's wrong?

Thank you for a reply
Christoph

----
inexsys AG
Weinbergstrasse 29
CH-8006 Z�rich
Tel +41 1 258 86 52
Fax +41 1 258 86 99
[EMAIL PROTECTED]
http://www.inexsys.com




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to