I'm confused by how NetBeans handle layouts. I'm looking to implement a CardLayout that switches between several jPanels, on a jFrame. The jPanels have their own layouts (GridBagLayout). The first jPanel is a Login window, which after authentication would change to another jPanel, the main window. I have no clue where NetBeans generates the layout code as I can't find it.
Here is a picture of the structure I want: