posted 23 years ago
Do swing JPanels inherit the background color of the parent
JFrame when added? I'm guessing the answer is no, since my code
isn't persisting the JFrame's background color after I add a panel to it. Is there a way to only set the background color once per an application rather than setting each JPanel's background?
Thanks