how to set Window background transparent?

hello

i have a splash screen with an Image on it and i want the background of the Window object would be transparent, how can i do it?

here it is:

public class SplashWindow extendsJWindow{

public SplashWindow(){

try{

JLabel img=new JLabel(new ImageIcon("images/splash.gif"));

getContentPane().add(img);

setSize(473,534);

setLocation(300,300);

setVisible(true);

}catch(Exception e){

e.printStackTrace();

}

}

}

thank a lot.

[687 byte] By [amitmasl] at [2007-9-26 3:14:48]
# 1

Generally, transaprent backgrounds are fake. What happens is that you set an image as yoru window background and listen for window's moves. When the window is moved, you read the new location and the desktop background and update your window background with the portion of desktop image you have below your window.

Choub

abcdefghgfedcba at 2007-6-29 11:25:29 > top of Java-index,Archived Forums,Swing...