Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Applet Background Color

843807May 4 2007 — edited May 6 2007
Hi,

I am trying to set the background color of my applet to white but it
keeps coming up gray.Strangely when I open the applet on a local web
page (not live on the web), applet viewer (thru eclipse) or even live
on the web from my own home PC it appears white as expected. But from
every other machine that I access it the background is gray. Even when
i run it thru Eclipse on other PCs the background is gray.I have tried
to set the background to white by calling
setBackground(Color.white)
and
setBackground(Color.WHITE)
from the
init() 
method. In the HTML that calls the applet i also set
the <body bgcolor=#FFFFFF></body> and i do the same for the <HEAD>.
However from every other machine that I access my web page/applet
except my own home PC the background still appears as gray.

Any ideas?

Thanks
WS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2007
Added on May 4 2007
2 comments
296 views