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.
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
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.
*** Issue 59368 has been marked as a duplicate of this issue. ***
*** Issue 82767 has been marked as a duplicate of this issue. ***
*** Issue 111535 has been marked as a duplicate of this issue. ***
*** Issue 130413 has been marked as a duplicate of this issue. ***
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...
*** Issue 135143 has been marked as a duplicate of this issue. ***
*** Issue 147146 has been marked as a duplicate of this issue. ***
*** Bug 179484 has been marked as a duplicate of this bug. ***