This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36710

Summary: Setting the Background in the gui-editor on a JApplet has no effect.
Product: guibuilder Reporter: Gehtdich Nixan <faralla>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker CC: tboudreau
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Gehtdich Nixan 2003-10-21 09:25:32 UTC
When I set a Background-Color on a JApplet this 
has no effect at all. 
I think the generated code should be 
getContentPane().setBackground(Color c); instead 
of setBackground(Color c);
It is the same for the Foregroundcolor...

Faralla
Comment 1 Tomas Pavek 2003-10-21 11:44:27 UTC
The problem is a bit wider - there are the top containers (like
JApplet and JFrame) and they have some sub-containers underneath, like
the content pane. Both have some properties, but form editor actually
shows properties only for the top container. There would have to be
"Content Pane" node perhaps to present the other properties. Just
generating getContentPane().set... is wrong though the user wants e.g.
to set the colors on content pane, not on the top container. I don't
like to hack this only for colors, but don't know better solution at
this moment.
Comment 2 Tomas Pavek 2005-11-04 12:13:08 UTC
*** Issue 59368 has been marked as a duplicate of this issue. ***
Comment 3 Jan Stola 2006-08-28 16:06:20 UTC
*** Issue 82767 has been marked as a duplicate of this issue. ***
Comment 4 Tomas Pavek 2007-08-01 08:59:19 UTC
*** Issue 111535 has been marked as a duplicate of this issue. ***
Comment 5 Jan Stola 2008-03-18 16:02:53 UTC
*** Issue 130413 has been marked as a duplicate of this issue. ***
Comment 6 Petr Dvorak 2008-03-18 16:10:36 UTC
Well... You can guess which behavior is more expected and intuitive. It is not the current one, as far as I'm concerned.
If you create a form and then change its background color, you expect that the background color is changed. The
generated code should be getContentPane().setBackground(Color c);, for my taste - DEFINITELY.

If it was up to me, the current behavior would be marked as a bug. I recommend increasing the priority.

Raising priority to P2, to bring up faster decision making about this;)... The fix is probably very simple...
Comment 7 Jan Stola 2008-05-27 15:56:09 UTC
*** Issue 135143 has been marked as a duplicate of this issue. ***
Comment 8 Jan Stola 2008-09-17 15:46:42 UTC
*** Issue 147146 has been marked as a duplicate of this issue. ***
Comment 9 Jan Stola 2010-02-25 07:06:25 UTC
*** Bug 179484 has been marked as a duplicate of this bug. ***
Comment 10 Tomas Pavek 2017-06-27 10:04:28 UTC
*** Bug 179484 has been marked as a duplicate of this bug. ***