Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configure cell size in GridBagLayout

 
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;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic