Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Transparent backgroud in Java Applet

Posted on 1997-09-06
2
Medium Priority
?
1,068 Views
Last Modified: 2006-11-17
I succed in making transparent "gif", but with an applet I
have installed (you can find it in jdk demo "blink.class"),
I encountered some problem.
The text entred as applet parameter blinks correctly but the
background stays always gray.
Is it possible to get only the text blinking on my html home page background ?
0
Comment
Question by:abrix
2 Comments
 

Accepted Solution

by:
Reil earned 200 total points
ID: 1226515
You may want to try the setBackground() method.
If your webpage's background is white, the code would be something like:
setBackground(Color.white);

Alternatively, if your website features a background image, you have to load the same image into your applet, I think.
0
 

Author Comment

by:abrix
ID: 1226516
Thank you for your help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

971 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