title: GridBagLayout: equally distributed cells
body: <p>Is it possible to completely emulate the behavior of a GridLayout with the GridBagLayout manager?</p>
  
  <p>Basically, I have a 8x8 grid in which each cell should have the same width and height. The GridLayout automatically did this. But I want to add another row and column to the grid which size is <em>not the same</em> as the other ones. That row/column should take up all the remaining space that might be left over (because the available size couldn't be equally distributed into 8 cells). Is that even possible, or do I – again – have to use a different layout manager?</p>
  
  <h3>edit</h3>
  
  <p>Here is a simple graphic of what I want to achieve, simplified to just 4 cells:
  <img src="https://i.stack.imgur.com/GDApY.png" alt="Problem graphic"></p>
  
  <p>The colored cells are the ones I added to the actual grid (gray) which has cells with the same height and width <code>x</code>. So the grid's height and width is <code>4*x</code>. I now want the additional cells to have the necessary width/height (minimumSize) plus the rest of the available width/height from the full size.</p>
  
  <p>If the whole panel's size is changed, the gray grid cells should again take up as much as space as possible.</p>