Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent:Table in BorderLayOut.NORTH  RSS feed

 
Kinu Kanwar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a scroll pane which contains table. I have placed this scroll pane in NORTH section of BorderLayout.

The problem is that table has 10 rows and I want user to show atleast 3-4 rows but as I have placed scroll pane in north so it just shows only one row and includes scroll bar.

Any quick help is appreciated.

Kinu
 
Kinu Kanwar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Called setMinimumSize() on Table , it worked.

Kinu
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!