...
>I am trying to set the background color of my applet to white but it
>keeps coming up gray.
Is it AWT or Swing? If Swing - have you set
the stransparency false? What is the PLAF?....
All this could be answered with an URL to the page
(live) whith said page linking to the code.
>setBackground(Color.white)
>and
>setBackground(Color.WHITE)
What minimum Java version is your applet targetted to support?
>from the init() method. In the HTML that calls the applet i also set
>the <body bgcolor=#FFFF></body> and i do the same for the <HEAD>.
Neither of those will have any good effect, since the
root component of any applet is opaque (no see through)
>Any ideas?
Answer the questions above, and change your posting ID
from that of the star trek actor (are my ideas).

Signature
Andrew Thompson
http://www.athompson.info/andrew/
shatner.william@gmail.com - 06 May 2007 13:37 GMT
Hi Andrew,
Thanks for your reply. I had to change my content pane, I had it set
as a JPanel and I changed this to Container.
Then I called contentPane.setBackground(Color.white) rather than just
setBackground(...)and it worked.
Container contentPane = getContentPane();
contentPane.setBackground(Color.white);
Thanks again for taking the time to reply.
Cheers,
Toriacht
> shatner.will...@gmail.com wrote:
>
[quoted text clipped - 29 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1