?
Solved

Transparent Applet

Posted on 1998-02-26
8
Medium Priority
?
349 Views
Last Modified: 2008-02-01
is it possible have a applet that is transparent and how do i do it?
i mean u are able to see the web page behind the applet
0
Comment
Question by:younggun
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 

Expert Comment

by:prg022698
ID: 1233272
That is not possible, at least not that I know of.
0
 
LVL 1

Expert Comment

by:dbogstad
ID: 1233273
When a web browser displays an applet it actually gives up control of that displayed area to the applet. If the applet asks for a 300 by 200 area of pixels within a web page it gains complete control of that area. If it didn't have complete control the browser could violate the operations of that applet.

However, you could cheat, and display the background color of the webpage as the background color of the applet. Setting the background color of your applet could be the first thing your applet does in its init() method.

good luck
0
 

Author Comment

by:younggun
ID: 1233274
sorry, maybe i phase the question worngly
what i mean is that u can see the background image of the web
page through the applet.
please don't tell me to cut part of the web page background image
and use as the applet background.
thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 6

Expert Comment

by:jpk041897
ID: 1233275
You would not necesaraly have to "cut" the graphic, you could load the background graphics using imageloader and display only a part of it as the background for your applet.

The solution is messy, forcing you to override the paint() method but is currently the ony solution that will work.

The main problem with such a solution is that it will not diplay text that is drawn by HTML tags behind the applet
0
 

Author Comment

by:younggun
ID: 1233276
but i would have to know before hand where the applet is located in the web page in order to know which part of the background to display
0
 
LVL 6

Expert Comment

by:jpk041897
ID: 1233277
Correct, although you could work arround the limitation by either sending the applets coordinates in the web page as paramters to the applet via HTML, or by creating the frame that contains the applet via JScript and passing the parameters via interapplet communication.
0
 
LVL 1

Accepted Solution

by:
dbogstad earned 100 total points
ID: 1233278
The answer to your question is definitely no
0
 

Author Comment

by:younggun
ID: 1233279
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 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