NickPick, 03.03.2009 14:50:
> When I set a background color for an applet in NetBeans it is
> displayed correctly in the GUI but once the applet is compiled and
> run, everything is displayed in the original light gray background.
>
> setBackground(new java.awt.Color(211, 220, 230)); // seems to be
> without any effect.
>
> Any idea what the problem might be?
>
Whether a component honors the setBackground() or not depends on the look and feel that is used.
At least this is my experience with "regular" Swing applications. Don't know if this applies to an Applet as well.
|