Solved

Transparent in Java Applet !!!!

Posted on 2001-09-04
5
1,552 Views
Last Modified: 2006-11-17
Hi,

Does anybody have any idea on how to make a java applet's background to be transparent? Specifically what l have in mind is when the applet is loaded on a webpage, l would like to have the applet's background to be the webpage's background image i.e. the applet has a transparent background so that whatever the webpage's background become the applet's background image.

Thxs in advance for any advice.

Michael Chang
0
Comment
Question by:mikeckt
5 Comments
 
LVL 9

Expert Comment

by:Ovi
ID: 6455645
The applet is viewed by the browser such a "embed" application, so the browser create the context, stubs, ... , and the container for the applet.What you want is not possible to accomplish because of all that.
0
 
LVL 6

Expert Comment

by:kotan
ID: 6455715
0
 
LVL 6

Accepted Solution

by:
kotan earned 50 total points
ID: 6455732
Java applets cannot be set to transparent as the underlying content is not known to the Java Virtual
      Machine (JVM). In fact, the default color is grey which is displayed while the applet is being
      loaded. The background of every menu applet can be configured by specifying either the
      background color via the "bgcolor" parameter, the background image via the "bgimage" parameter
      or a combination of both parameters.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6457186
just render whatever image you want as applet background
0
 
LVL 20

Expert Comment

by:Venabili
ID: 8932448
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for kotan

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question