This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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!