Solved

Transparent in Java Applet !!!!

Posted on 2001-09-04
5
1,541 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
replace a word with other 1 44
egit plugin on eclipse 8 62
java jdbc batch example 8 31
Opening PDF on button click and fill new document 2 35
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
This video teaches viewers about errors in exception handling.
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.

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now