Solved

Transparent in Java Applet !!!!

Posted on 2001-09-04
5
1,562 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 125
Should localization be done inside spring controller 5 37
Android development question 2 78
junit example issue 2 25
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

756 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