Size of JTable in Form

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #313924 Reply

    I have a new form with a JTable in it. (wrapped in a JScrollPane of course)
    The table has a simple data model with a fixed number of rows and columns.
    All of this is placed in a GridBagLayout. (No Fill)

    The problem is that when it’s displayed, the Scroll Pane is twice as tall as the Table, so there is this big blank area under the table. looks really stupid, and wastes a LOT of screen space.
    Any suggestions on what settings I need to check to get rid of this?

    #313949 Reply

    It’s interesting that all it takes is a finger twitch at the wrong time to end up posting the same msg twice.
    And since I didn’t notice quickly, I can’t seem to delete the duplicate.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Size of JTable in Form

You must be logged in to post in the forum log in