Results 1 to 2 of 2
  1. #1
    Takashy is offline Member
    Join Date
    Feb 2011
    Posts
    9
    Rep Power
    0

    Default Position of PdfPTable

    Hello, there. I hope that this is the right place to ask this.

    I have made a PdfPTable and I need to reposition it, but it always seems to be in the center of the page. I was wondering if someone could help me with this. Basically I need to set the spacing from the left and right side so that the table is in the right position.

  2. #2
    Shoss's Avatar
    Shoss is offline Member
    Join Date
    Feb 2011
    Posts
    94
    Rep Power
    0

    Default

    I know if you set the width of the table you can align it by using
    Java Code:
    pdfptable.setHorizontalAlignment(Element.ALIGN_RIGHT);
    but i'm not sure how you'd set the margin.

Similar Threads

  1. Replies: 0
    Last Post: 11-12-2009, 10:15 AM
  2. get position in string from caret position
    By helloworld111 in forum AWT / Swing
    Replies: 5
    Last Post: 02-19-2009, 01:36 AM
  3. BorderFactory to set position?
    By aleplgr in forum AWT / Swing
    Replies: 2
    Last Post: 01-30-2008, 12:46 PM
  4. Help with position in java
    By fernando in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 07:54 PM
  5. Use the mouse position
    By susan in forum Java Applets
    Replies: 1
    Last Post: 07-28-2007, 11:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •