I found one example in which buttons are added to panels (instances of JPanel) then panels are added to the the containers (instances generated by getCont
Good question. I found it helpful to understand that "Swing provides three generally useful top-level container classes: JFrame, JDialog, and JApplet. ... As a convenience, the add method and its variants, remove and setLayout have been overridden to forward to the contentPane as necessary."—Using Top-Level Containers