I have a little issue with the GridBag Layout Manager. I am trying to display 9 panels like this:
Generally, I create and add the components of a GridBagLayout in Y, X position order. I don't know if this is required, but it makes it easier for me to diagnose problems.
Here's what I came up with for your grid.
Component xPosition yPosition xWidth yHeight
--------- --------- --------- ------ -------
S1 0 0 2 2
S2 2 0 2 1
S4 4 0 2 2
S5 6 0 2 1
S7 8 0 2 2
S8 0 2 5 1
S3 2 2 2 1
S9 5 2 5 1
S6 6 2 2 1