Updating a splashscreen

Hello,

I have been wanting to implement a transparent splash screen for a while, and after a lot of searching I came across this post: http://forum.java.sun.com/thread.jspa?threadID=175752&start=0&tstart=0 .

The last post of that topic shows how to fake the transparency effect by creating a screenshot of the underlying screen and painting upon that. I tried it and it worked perfectly, except for the fact that the screenshot is only taken once, on creation, and if the background changes, it no longer looks like a transparent splashscreen.

I've been trying to put the code that created the image inside the paint method, but that leads to worse results (the splash screen not showing at all) so I'm basically at a loss of how to improve this code.

Thanks in advance for any help.

Regards,

Rogier

[852 byte] By [Rogiera] at [2007-11-26 13:55:54]
# 1

I remember reading something like that in a book. Something bout Swing Hacks I think.

One of the hacks describes creating a transparent window and I think they did it the same way as you are doing and they had the same problem. They got round it by taking a screenshot every now and then. But its complicated by the fact u have to hide the window before taking the screenshot otherwise u take a screenshot of the window as well. I dont think JVM is quick enough at hiding, taking a screenshot, then redisplaying the window without annoying flicker i;m afraid.

ukmunkyman2a at 2007-7-8 1:35:10 > top of Java-index,Security,Cryptography...