[4467] in java-interest

home help back first fref pref prev next nref lref last post

Transparent Applet

daemon@ATHENA.MIT.EDU (John D. Kane)
Sat Dec 30 16:16:14 1995

From: "John D. Kane" <john@insightnews.com>
To: "'java@java.sun.com'" <java@java.sun.com>,
        "'java-interest@java.sun.com'" <java-interest@java.sun.com>,
        "'jug@solect.com'" <jug@solect.com>
Date: Sat, 30 Dec 95 14:17:00 PST


Is it possible to have a transparent applet, or are there any close hacks 
out there to accomplish the same thing? I have yet to see an applet that 
doesn't allocate that gray square chunk in the html document (and I've 
thoroughly searched the internet for one). I want the allocated applet space 
on the page to show what's there instead of cutting that rectangle out.

A point I'm not sure about is whether the html document or the java applet 
paints that rectangle for the applet to run in. I know I specify width and 
height in the html <applet ....> tag, but by whom is the actual painting of 
the rectangle done ... the html doc or the applet?

I can paint the applet space afterwards, but if I have a html background 
which isn't a solid color (eg. brick pattern), how the heck do I draw the 
same pattern into the applet space so that it lines up seemlessly? (If it 
does line up seemlessly by some stroke of luck, then all the user has to do 
is resize the navigator and wham! -- it's out of wack again)

If anyone has any suggestions, or can point me to some type of transparent 
applet, please let me know. Usually these small details don't matter, but 
I'm working for an electronic publishing company where looks are everything.

Thanks,
John
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post