I would like to layout components as shown in the picture only using the GridBagLayout.
I have tried several constraints but it never end up with the expected result so I come to wonder if it is truly possible with only the GridBagLayout. The difficulty is for the C1, C2 and C3 components.
C1 and C2 are JComponent that will hold other components inside like JPanel. I have set their minimum and preferred size. C3 is a JButton.
C1 should not take extra space so i set its weightx to 0 and gridwidth to 1 (tried also with 2 as it span on C2 and C3).
C2 takes all extra space, i set its weightx to 1 and gridwidth to 3.
The GUI is not resizable.
I have use this LayoutManager several times but still don’t master it, thank you for a little help.

I’ll talking only about
GridBagLayout, even this could be job exactly forMigLayout(MigLayout has additional parameter for fills numbers of Columns & Rows, resize, e.i.), and/orTableLayout(???)GridBagLayoutrequired only filling all desired numbers of columns in first row(only), then matrix is created and you can to define whateverGBC weightx, weighty, gridx, gridyand/or withAnchortooexample talking about