• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel Background Colour

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a JPanel that I add to another JPanel which I then add to a JApplet. If I try and set background colour to the first (lowest hierarchy) JPanel it doesn't show when the applet displays. If I try and set the colour for the parent JPanel the entire JApplet background turns that colour. Why is that and how can I just have the lowest level JPanel's background colour? Thanks.

Rob
 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!