I have 3 JPanels and I want to place them all in one JPanel. I used the GridBagLayout for the main panel. But only one panel is getting added. Why might this be?
You might consider using a MigLayout instead, the code is much simpler:
panel1Customizer(); panel2customizer(); panel3Customizer(); setLayout(new MigLayout("fill, wrap 3")); add(panel1, "grow"); add(panel2, "grow"); add(panel3, "grow");