On 9/19/2010 5:33 PM, John B. Matthews wrote:
In article
<98ea2785-570b-4783-93a5-b4d378fc271e@a30g2000vbt.googlegroups.com>,
bruce<bruceaj@bellsouth.net> wrote:
Not sure how you were able to get it work an I can't..
I'm using: Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
If it makes a difference, I'm using NetBeans 6.9.1. I had to edit the
projects' properties to make sure I was running the new JFrame's main()
method. I added a smaller JPanel with a different background, just to
see the effect. My JFrame's initComponents() then included these lines:
setBackground(new java.awt.Color(0, 255, 255));
colorPanel.setBackground(new java.awt.Color(255, 153, 0));
You might verify that at least some of the JFrame's background is
showing.
in that method is directed to the content pane.