File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Inheriting the color of parent" Watch "Inheriting the color of parent" New topic
Author

Inheriting the color of parent

Jody Seigle
Greenhorn

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?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inheriting the color of parent