Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inheriting the color of parent  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!