wood burning stoves 2.0
The moose likes Applets and the fly likes Background Color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Background Color" Watch "Background Color" New topic

Background Color

Hugh Savoie

Joined: Oct 16, 2001
Posts: 14
How/can I make an applet background transparent?
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9055
Is it an Applet or a JApplet? Only lightweight components can be transparent. All of the "heavyweight" AWT components are opaque.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
John Zukowski
Ranch Hand

Joined: Mar 29, 2001
Posts: 88
You can't.
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"

John Zukowski Author of <a href="http://www.amazon.com/exec/obidos/ASIN/189311578X/ref=ase_electricporkchop/107-7882751-0234939" target="_blank" rel="nofollow">"Definitive Guide to Swing for Java 2"</a>,<br /><a href="http://www.amazon.com/exec/obidos/ASIN/1893115925/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Java Collections"</a> and <a href="http://www.amazon.com/exec/obidos/ASIN/1893115984/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Learn Java with JBuilder 6"</a>
Don't get me started about those stupid light bulbs.
subject: Background Color