Results 1 to 4 of 4

Thread: Jtable

  1. #1
    coolcoder is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default Jtable

    I created a Jtable in which the number of columns and rows change dynamically.

    Whenever there are less number of columns(or rows) , there is a large awkward gap between the last column (or last row ) and the scroll bar.

    i was trying to remove this gap from past few days....but i couldn't....please please help me with this....

  2. #2
    fex
    fex is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default

    Have you tried the resizeAndRepaint() method after refilling the JTable (with new dynamic content)?

  3. #3
    coolcoder is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default

    i am able to dynamically changes contents and all.....there is no problem with that....there is an empty space in between the last column of table and scroll pane....i want to remove that

  4. #4
    fex
    fex is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default

    Try repacking your jframe after updating your table:
    Java Code:
    jframe.pack();

Similar Threads

  1. Adding New JTable in JTable
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 01-27-2010, 08:27 AM
  2. JTable
    By hedonist in forum New To Java
    Replies: 3
    Last Post: 10-27-2009, 11:30 PM
  3. JTable help
    By FFEJ in forum New To Java
    Replies: 5
    Last Post: 10-05-2009, 11:30 PM
  4. Regarding JTable
    By adeeb in forum SWT / JFace
    Replies: 0
    Last Post: 06-18-2008, 06:13 PM
  5. Replies: 2
    Last Post: 05-15-2008, 10:15 AM

Posting Permissions

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