Link Details

Link 123276 thumbnail
User 111696 avatar

By bloid
via explodingpixels.wordpress.com
Published: Oct 06 2008 / 04:30

Ahhh, the old table-doesn’t-fill-the-view problem. Nothing says “this is a Swing app” more than a JTable that only fills up part of it’s parent JViewport. Apparently this behavior was not the original behavior (as I had once thought), but was introduced, presumably as a bug, back in Java 1.2 (see this bug report). This behavior has been fixed in Java 6, though not by default - you have to call JTable.setFillsViewportHeight(true).
  • 10
  • 0
  • 1055
  • 257

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)