• Post Reply Bookmark Topic Watch Topic
  • New Topic

configure cell size in GridBagLayout  RSS feed

 
Tariq Ahsan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I setup the cell size in GridBagLayout?
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you correctly, you need to use the gridwidth and gridheight variables, e.g: layout.gridwidth = 2;
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!