• Post Reply Bookmark Topic Watch Topic
  • New Topic

size for JTable  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i have created a JTable but its size is only the half of the panel. I used GroupLayout to view the table can anybody help is there any method to specify the size of table.
 
Rish Jain
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use setAutoResize() or setFillsViewportHeight(boolean fillsViewportHeight) methods.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!