Solved

Transparent in Java Applet !!!!

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 38
sumHeights  challenge 17 60
Java Message handling in Service Layer 3 37
eclipse formatting 6 40
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

708 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

12 Experts available now in Live!

Get 1:1 Help Now