File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Inheriting the color of parent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Inheriting the color of parent" Watch "Inheriting the color of parent" New topic

Inheriting the color of parent

Jody Seigle

Joined: Sep 29, 2000
Posts: 24
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?
I agree. Here's the link:
subject: Inheriting the color of parent
It's not a secret anymore!