I am currently working on a GUI which has a JFrame which contains a JPanel which in turn contains several JPanels. I am using GridBagLayout for all of them, yet whenever I change the window's size (maximising or manually dragging) the JPanels stay the same size. I tried using fill but it only fills to the JFrame's original size, not when I resize it.
I have tried a few things, I think it might be because I have JPanels inside JPanels, however I'd would like to be sure before changing my code that much.
Thanks a lot for your help!