• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheriting the color of parent

 
Jody Seigle
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic